Am Montag, 31. Juli 2017 23:10:01 UTC+2 schrieb Daniel Cure: > > what is the best method for changing root password in linux redhat env. > > Probably the user module.
http://docs.ansible.com/ansible/latest/user_module.html But the problem with the user module is, that it is quite hard the debug. You can try this: - name: Update Root password user: name: root uid: 0 gid: 0 shell: /bin/bash password: "{{root_password_hash}}" home: /root update_password: always state: present Set the variable root_passoword_hash in a vault file. http://docs.ansible.com/ansible/latest/playbooks_vault.html -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/77af90bb-34d9-4644-95e3-f6782b065d71%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
