Temporary workaround to create the newusers PAM service file. Fedora
will soon provide this service file and we'll be able to remove the
workaround.
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
register: dnf_result
changed_when: '"Nothing to do" not in dnf_result.stdout'
+- name: Temporary workaround to create the newusers PAM service file
+ ansible.builtin.copy:
+ src: /etc/pam.d/chfn
+ dest: /etc/pam.d/newusers
+ remote_src: yes
+ owner: root
+ group: root
+ mode: '0644'
+
- name: Build configuration
ansible.builtin.command: >
./autogen.sh