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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -