@@ -50,7 +50,7 @@ which for bonus points you can install with ansible! Easy enough.
...
@@ -50,7 +50,7 @@ which for bonus points you can install with ansible! Easy enough.
Inventory file
Inventory file
==============
==============
To use ansible you must have a list of hosts somewhere. The default inventory file (override with -H) is /etc/ansible/hosts and is a list of all hostnames to manage with ansible, one per line. These can be hostnames or IPs.
To use ansible you must have a list of hosts somewhere. The default inventory host list (override with -l) is /etc/ansible/hosts and is a list of all hostnames to manage with ansible, one per line. These can be hostnames or IPs.
Example:
Example:
...
@@ -91,8 +91,8 @@ JSON files can be placed for template metadata using Jinja2. Variables
...
@@ -91,8 +91,8 @@ JSON files can be placed for template metadata using Jinja2. Variables
placed by 'setup' can be reused between ansible runs.
placed by 'setup' can be reused between ansible runs.
ansible -p "*" -n setup -a "favcolor=red ntp_server=192.168.1.1"
ansible -p "*" -n setup -a "favcolor=red ntp_server=192.168.1.1"
ansible -p "*" -n template /srv/motd.j2 /etc/motd
ansible -p "*" -n template -a "src=/srv/motd.j2 dest=/etc/motd"