Use ANSIBLE_BECOME_FLAGS instead of ANSIBLE_SUDO_FLAGS
'ANSIBLE_SUDO_FLAGS' is now deprecated and will be removed in Ansible 2.8 in favor of become. We now have to use 'ANSIBLE_BECOME_FLAGS' to pass flags to the privilege escalation executable, 'sudo'. Change-Id: I1747b7505dfce848902d171b1db6ad3c4c3c81e4 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
@@ -27,9 +27,10 @@ fi
|
||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||
# Disable retry files until we find a good use and location for them
|
||||
export ANSIBLE_RETRY_FILES_ENABLED=False
|
||||
# Add `-E` to the sudo flags to preserve the shell environment. The `-H -S -n`
|
||||
# options are Ansible's default values.
|
||||
export ANSIBLE_SUDO_FLAGS="-H -S -n -E"
|
||||
# ANSIBLE_SUDO_FLAGS is deprecated in favor of become and will be removed in
|
||||
# version 2.8. We now have to use ANSIBLE_BECOME_FLAGS to pass Flags to the
|
||||
# privilege escalation sudo executable.
|
||||
export ANSIBLE_BECOME_FLAGS="-H -S -n -E"
|
||||
|
||||
export ANSIBLE_PRIVATE_KEY_FILE=$IDENTITY_FILE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user