linux_wiki:ansible

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/testing before committing working modifications to the repo.   * Each system administrator would then clone a copy of the repo into their home directory for local changes/testing before committing working modifications to the repo.
   * 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 /ansible/ at the top of every hour.+    * 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<code bash># File: webservers_nginx.yml+  * Example playbook<code yaml># File: webservers_nginx.yml
 # Description: Nginx Webservers # Description: Nginx Webservers
 # 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<code bash># Gather host facts for this playbook+  * Example: Collect only the ansible_distribution facts<code yaml># Gather host facts for this playbook
   gather_facts: yes   gather_facts: yes
   # Gather only ansible_distribution info (OS attributes)   # Gather only ansible_distribution info (OS attributes)
  • linux_wiki/ansible.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)