Merge "Append /sbin and /usr/sbin to $PATH for 'ip' commands"
This commit is contained in:
commit
8682b91242
@ -1,9 +1,16 @@
|
||||
- include: common.yaml
|
||||
|
||||
# Note (dmsimard)
|
||||
# We explicitely declare a PATH environment variable because '/sbin' is not in
|
||||
# PATH when using 'become: yes' on some distributions
|
||||
- include: switch.yaml
|
||||
environment:
|
||||
PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin"
|
||||
when: inventory_hostname in groups['switch']
|
||||
static: no
|
||||
|
||||
- include: peer.yaml
|
||||
environment:
|
||||
PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin"
|
||||
when: inventory_hostname in groups['peers']
|
||||
static: no
|
||||
|
Loading…
x
Reference in New Issue
Block a user