From charlesreid1

Revision as of 19:11, 8 November 2018 by Admin (talk | contribs) (Created page with "Strategy: create separate variable file for each host and each group These variable files should be in YAML format If your playbooks are in <code>playbooks/</code>, and your...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Strategy: create separate variable file for each host and each group

These variable files should be in YAML format

If your playbooks are in playbooks/, and your hosts file is in playbooks/hosts, then you would organize the directory as follows:

  • put variables for the host california.example.com into the file playbooks/host_vars/california.example.com
  • put variables for the production group in the file playbooks/group_vars/production