Ansible Notes
Playbook yaml options
Become=trueRun all tasks by becoming rootupdate-cache=yesPerform an apt update before install
Playbook command line options
--start-at-taskTo start executing in the middle of the playbook from the named task
Popular ansible modules
See notes in WorkFlowy
Other options
$ ansible-doc serviceShow documentation for the service module.$ ansible all -i hosts -m pingto check if all servers in hosts are available.$ ansible-playbook -i hosts 02-apt-update.yamlto run the playbook on the hosts defined in the hosts file.