Execution
Date 14 Dec 2025 10:21:40 +0000
Duration 00:43:55.98
Controller aio1.openstack.local
User root
Versions
Ansible 2.18.6
ara 1.7.4 / 1.7.4
Python 3.13.5
Summary
13 Hosts
2438 Tasks
2413 Results
107 Plays
511 Files
0 Records

Task result details

  • Status
    OK
  • Duration
    00:00:00.24
  • Play
    Install nova control-plane services
  • Task
    os_nova : Remove existing directory if it is not a git repo or it is dirty

Field Value
changed
False
cmd
EXIT_CODE=0
FOLDER_PATH="/usr/share/novnc"
if [[ -e ${FOLDER_PATH} ]]; then
  if [[ ! -d "${FOLDER_PATH}/.git" ]]; then
    echo "${FOLDER_PATH} is not a git repo, deleting..."
    EXIT_CODE=2
  elif test -n "$(cd ${FOLDER_PATH}; git status --porcelain)"; then
    echo "${FOLDER_PATH} is a dirty git repo, deleting..."
    EXIT_CODE=2
  fi
  if [[ "${EXIT_CODE}" == "2" ]]; then
    rm -rf ${FOLDER_PATH}
  fi
fi
exit ${EXIT_CODE}
delta
0:00:00.002949
end
2025-12-14 10:40:32.790555
failed_when_result
False
invocation
{
    "module_args": {
        "_raw_params": "EXIT_CODE=0\nFOLDER_PATH=\"/usr/share/novnc\"\nif [[ -e ${FOLDER_PATH} ]]; then\n  if [[ ! -d \"${FOLDER_PATH}/.git\" ]]; then\n    echo \"${FOLDER_PATH} is not a git repo, deleting...\"\n    EXIT_CODE=2\n  elif test -n \"$(cd ${FOLDER_PATH}; git status --porcelain)\"; then\n    echo \"${FOLDER_PATH} is a dirty git repo, deleting...\"\n    EXIT_CODE=2\n  fi\n  if [[ \"${EXIT_CODE}\" == \"2\" ]]; then\n    rm -rf ${FOLDER_PATH}\n  fi\nfi\nexit ${EXIT_CODE}\n",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": "/bin/bash",
        "expand_argument_vars": true,
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg

rc
0
start
2025-12-14 10:40:32.787606
stderr

stderr_lines
[]
stdout

stdout_lines
[]