From charlesreid1

(Created page with "When specifying Vagrant machines in the hosts file, we specify the host and port for each machine: <pre> vagrant1 ansible_host=127.0.0.1 ansible_port=2222 vagrant2 ansible_ho...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Main|Ansible/Hosts}}
When specifying Vagrant machines in the hosts file, we specify the host and port for each machine:
When specifying Vagrant machines in the hosts file, we specify the host and port for each machine:


Line 8: Line 10:


We can also pass in custom parameters and access them from the playbook.
We can also pass in custom parameters and access them from the playbook.
=Flags=
[[Category:Ansible]]
[[Category:Ansible Groups]]
[[Category:Ansible Hosts]]
[[Category:Infrastructure]]
[[Category:Python]]

Latest revision as of 19:24, 8 November 2018

When specifying Vagrant machines in the hosts file, we specify the host and port for each machine:

vagrant1 ansible_host=127.0.0.1 ansible_port=2222
vagrant2 ansible_host=127.0.0.1 ansible_port=2200
vagrant3 ansible_host=127.0.0.1 ansible_port=2201

We can also pass in custom parameters and access them from the playbook.


Flags