deoren / notes

Various notes for topics I'm learning
2 stars 0 forks source link

Ansible: Connection types #7

Open deoren opened 5 years ago

deoren commented 5 years ago

Example

I noticed on a Lynda.com video that the connection type was setup this way inside of an inventory file:


[groupA]
host1
host2
host3

[groupB]
host4
host5
host6

[all:vars]
ansible_connection=local

This allowed the instructor to use one test VM as several "fake" systems in order to illustrate failure handling later in the video series (either the same video or the next).

Clever.

References