Merge "Never remove the ansible_inventory if --dry-run is used"

This commit is contained in:
Zuul 2018-06-06 11:32:16 +00:00 committed by Gerrit Code Review
commit c6c3290f29
1 changed files with 1 additions and 1 deletions

View File

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