From charlesreid1

Revision as of 18:06, 7 November 2018 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.