From charlesreid1

 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
* [[Ansible/Group Variables]] - applying variables to an entire group
* [[Ansible/Group Variables]] - applying variables to an entire group


* [[Ansible/Hosts/Dynamic Inventory]] - example script for managing dynamic inventory
* [[Ansible/Host Naming]] - naming hosts, pets vs cattle, etc.


* [[Ansible/Host Naming]] - naming hosts, pets vs cattle, etc.
* [[Ansible/Hosts/Dynamic Inventory]] - example script for managing dynamic inventory, to avoid manually managing hosts


* [[Ansible/Splitting Hosts File]] - when the hosts file gets long and number of machines being managed gets large, you may need to split the hosts file into parts.
* [[Ansible/Splitting Hosts File]] - when the hosts file gets long and number of machines being managed gets large, you may need to split the hosts file into parts.
Line 20: Line 20:
=Examples=
=Examples=


==Basic==
==Basic Example==


* [https://charlesreid1.com/wiki/Ansible/Nginx_Playbook#Ansible_hosts_file Ansible/Nginx Playbook] - an Ansible hosts file demonstrating a simple one-machine Nginx server
* [https://charlesreid1.com/wiki/Ansible/Nginx_Playbook#Ansible_hosts_file Ansible/Nginx Playbook] - an Ansible hosts file demonstrating a simple one-machine Nginx server


==Advanced==
==Advanced Example==


* [https://charlesreid1.com/wiki/Ansible/Full_Stack_Playbook#Ansible_hosts_file Ansible/Full Stack Playbook] - an Ansible hosts file demonstrating a complex grouping strategy to organize the deployment of a full stack web application into 3 different environments
* [https://charlesreid1.com/wiki/Ansible/Full_Stack_Playbook#Ansible_hosts_file Ansible/Full Stack Playbook] - an Ansible hosts file demonstrating a complex grouping strategy to organize the deployment of a full stack web application into 3 different environments


=Flags=


=Flags=
{{AnsibleFlag}}


[[Category:Ansible]]
[[Category:Ansible Hosts]]
[[Category:Ansible Hosts]]
[[Category:Infrastructure]]
[[Category:Infrastructure]]
[[Category:Python]]
[[Category:Python]]

Latest revision as of 18:42, 8 December 2018

Topics and pages related to the Ansible hosts file

Topics

  • Ansible/Groups - a page covering how to use the Ansible hosts file to collect servers into groups, useful for defining roles, tasks, and deployment environments
  • Ansible/Splitting Hosts File - when the hosts file gets long and number of machines being managed gets large, you may need to split the hosts file into parts.

Ansible and AWS

Examples

Basic Example

Advanced Example

  • Ansible/Full Stack Playbook - an Ansible hosts file demonstrating a complex grouping strategy to organize the deployment of a full stack web application into 3 different environments

Flags