Sunday, August 30, 2020

Ansible: Ansible Commands and Configurations

Prompt password when run playbook to sudo:

$ cat ~/.ansible.cfg

[privilege_escalation]

become_ask_pass = True

Get remote server facts:

ansible all -i sandbox -m setup --tree /tmp/facts 


https://github.com/spurin/masteringansible



No comments:

Post a Comment