linux - How can I change root password via ansible to ~30 hosts? -
i need update more 30 hosts root password. read can user user module that... i'm doing wrong.
can drop here ?
i came across similar situation , did solve playbook this:
filename: password_rollover.yml --- - name: password rollover user: - name: "{{ lookup('env', 'user') }}" update_password: password: "{{ lookup('env', 'password') }}"
you use passing env variables:
user=root password=newpass ansible-playbook --limit group password_rollover.yml -b
Comments
Post a Comment