Merge "Never remove the ansible_inventory if --dry-run is used"
This commit is contained in:
commit
c6c3290f29
|
@ -493,7 +493,7 @@ export ARA_DATABASE="sqlite:///${OPT_WORKDIR}/ara.sqlite"
|
|||
#set the ansible ssh.config options if not already set.
|
||||
source $OOOQ_DIR/ansible_ssh_env.sh
|
||||
|
||||
if [ "$OPT_RETAIN_INVENTORY_FILE" = 0 ]; then
|
||||
if [ "$OPT_RETAIN_INVENTORY_FILE" = 0 && -z "$OPT_LIST_TASKS_ONLY" ]; then
|
||||
# Clear out inventory file to avoid tripping over data
|
||||
# from a previous invocation
|
||||
rm -f $ANSIBLE_INVENTORY
|
||||
|
|
Loading…
Reference in New Issue