source: main/waeup-ansible/host_vars/README.txt @ 14752

Last change on this file since 14752 was 14752, checked in by uli, 7 years ago

Allow per-host settings in separate config files.

We want to set passwords and the like in files that do *not* go into
SVN repo. This way all developers can set their respective values
without interfering with others.

File size: 792 bytes
Line 
1host_vars
2
3This directory serves for per-host configuration values, especially passwords.
4
5To set host-specific vars create  a file with the same name as the host is
6called in the ``hosts`` file and in this file write the options as you would
7normally in the ``hosts`` file. For instance::
8
9    # file "h1.example.org"
10    ansible_sudo_pass: my-secret-sudo-password
11    ansible_user: foo
12
13You can (and should) encrypt these files with `ansible-vault`::
14
15    $ ansible-vault create h1.example.org
16    <edit-file, add content as above>
17
18and later, when running ansible you can add ``--ask-vault`` option to decrypt
19the config files. In that case make sure to use the same password for all vault
20files.
21
22This very file serves as a placeholder in case this whole repo is going to
23`git` somewhen.
Note: See TracBrowser for help on using the repository browser.