Ansible
Ansible
Introduction to Ansible
What is IaC ?
6
Playbooks
database.yml
# ansible-playbook database.yml
7
Variables
• There are few places where you can define variables in an
Ansible playbook.
In the playbook
9
Lists
• Every element(member) of list should be written in a
new line with same indentation starting with “- “ (-
and space).
10
Facts
• Facts are information derived from speaking with your
remote systems. You can find a complete set under
the ansible_facts variable.
• Disabling Facts
11
Ansible Vault
• To create a new encrypted data file, run the
following command:
12