
There are 2 ways to realize the privilege escalation needed for the gate jobs. 1) Editing the playbooks (and hope to not forget to write the sudo/become lines for every role) 2) Editing the inventory and set the variable there. I'm taking the second approach with the minimum set of variables (become_method is sudo by default and become_user is root by default). Change-Id: I54b8c1489bfc46d4a03c907f4a86f0313c7778ff
12 lines
255 B
Plaintext
12 lines
255 B
Plaintext
[all]
|
|
localhost ansible_ssh_host=127.0.0.1 ansible_connection=local ansible_become=True
|
|
test1 ansible_ssh_host=127.111.111.101 ansible_become=True
|
|
test2 ansible_ssh_host=127.111.111.102 ansible_become=True
|
|
|
|
[all_containers]
|
|
test1
|
|
test2
|
|
|
|
[hosts]
|
|
localhost
|