Add example playbook.

This commit is contained in:
Jeremy Gardais 2018-01-12 10:39:22 +01:00
parent 72dbcd241f
commit 08c4151368
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## v1.0.X
## Enhancements
* Add example playbook.
## v1.0 ## v1.0

View File

@ -23,14 +23,26 @@ Manage some basics configuration for IPR's servers.
## Example Playbook ## Example Playbook
* Use defaults vars: * If you want to manage both localhost (127.0.0.1) and permanent IP (lan/ipv4) lines:
``` yml ``` yml
- hosts: serverXYZ - hosts: serverXYZ
roles: roles:
- role: ipr-cnrs.basics - role: ipr-cnrs.basics
basics__hosts_localhost_manage: true
basics__hosts_ipv4_manage: true
``` ```
* If the domain is not defined on the remote host, you should set the `basics__domain` variable:
``` yml
- hosts: serverXYZ
roles:
- role: ipr-cnrs.basics
basics__hosts_localhost_manage: true
basics__domain: 'mydomain.org'
````
## Configuration ## Configuration
### Hosts ### Hosts