Merge "Append /sbin and /usr/sbin to $PATH for 'ip' commands"

This commit is contained in:
Zuul 2017-10-01 00:54:26 +00:00 committed by Gerrit Code Review
commit 8682b91242

View File

@ -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