Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:ansible [2018/07/21 00:23] billdozor [Auto Generated Inventory] |
linux_wiki:ansible [2018/07/21 00:34] billdozor [Playbook Directory Structure] |
||
---|---|---|---|
Line 41: | Line 41: | ||
* Each system administrator would then clone a copy of the repo into their home directory for local changes/ | * Each system administrator would then clone a copy of the repo into their home directory for local changes/ | ||
* Have an automated job sync the shared location every so often. | * Have an automated job sync the shared location every so often. | ||
- | * Example: Have cron perform a git pull for / | + | * Example: Have cron perform a git pull for /ansible/ every 30 mins. |
\\ | \\ | ||
Line 237: | Line 237: | ||
\\ | \\ | ||
**Playbooks map ansible groups to roles** | **Playbooks map ansible groups to roles** | ||
- | * Example playbook< | + | * Example playbook< |
# Description: | # Description: | ||
# Last Updated: 2018-04-08 | # Last Updated: 2018-04-08 | ||
Line 261: | Line 261: | ||
If you do need to gather facts, consider gathering a subset of facts instead of everything in order to keep the fact collection fast. | If you do need to gather facts, consider gathering a subset of facts instead of everything in order to keep the fact collection fast. | ||
- | * Example: Collect only the ansible_distribution facts< | + | * Example: Collect only the ansible_distribution facts< |
gather_facts: | gather_facts: | ||
# Gather only ansible_distribution info (OS attributes) | # Gather only ansible_distribution info (OS attributes) |