Ansible Zero To Pro ✨
⛏️ “A stone is broken by the last stroke of the hammer. This does not mean that the first stroke was useless. Success is the result of continuous effort.” ⛏️
Table of Contents
📜
Ansible Definitions
Idempotency
- An operation is idempotent if the result of performing it once is exactly the same as the result of performing it repeatedly without any intervening actions.
CLI
-
imperative style of execution
ansible <host-pattern> -m <module> -a <command>
-
ansible
docsansible-doc -l
-
reboot hosts (
command
)ansible <host-pattern> -a '/sbin/reboot'
-
ping hosts (
module
)ansible <host-pattern> -m ping