Talk:Ansible: Difference between revisions

Line 138:
* Verify YAML syntax:
ansible-playbook --syntax-check mycode.yaml
 
= Playbook =
 
* Tasks are performed by Modules.
* Ordering is important: Plays & Tasks are executed in the order they are presented.
* Playbooks do not change anything if the host is already in desired state.
* Avoid modules like command, shell & raw as they are not idempotent by nature.