When Satellite invokes ansible-playbook, it does not log details on the invocation. This makes it more difficult to reproduce errors or test out fixes. It would be very helpful if Satellite could log invocation details.
As a point of contrast, consider what rhc-worker-playbook does. For each playbook invocation, RHC logs playbook runs in /var/log/rhc-worker-playbook/ansible/, and a /tmp directory. For example:
# tree /var/log/rhc-worker-playbook/ansible/1257ad22-25c4-4244-8fda-9b52eabb3826/ /tmp/tmpwh81akk2/ /var/log/rhc-worker-playbook/ansible/1257ad22-25c4-4244-8fda-9b52eabb3826/ ├── command ├── fact_cache │ └── localhost ├── job_events ├── rc ├── status ├── stderr └── stdout /tmp/tmpwh81akk2/ ├── env │ └── envvars └── project └── main.json 4 directories, 8 files
The command file is of special interest:
jq < /var/log/rhc-worker-playbook/ansible/1257ad22-25c4-4244-8fda-9b52eabb3826/command
{ "command": [ "ansible-playbook", "/tmp/tmpwh81akk2/project/main.json" ], "cwd": "/tmp/tmpwh81akk2/project", "env": { "YGG_SOCKET_ADDR": "unix:@yggd-dispatcher-vdFMxq", "PATH": "/sbin:/bin:/usr/sbin:/usr/bin", "LC_CTYPE": "C.UTF-8", "PYTHONPATH": "/usr/lib64/rhc-worker-playbook:/usr/lib64/rhc-worker-playbook/ansible_runner/config/../callbacks", "ANSIBLE_COLLECTIONS_PATHS": "/usr/share/rhc-worker-playbook/ansible/collections/ansible_collections/", "ANSIBLE_CALLBACK_PLUGINS": "/usr/lib64/rhc-worker-playbook/ansible_runner/config/../callbacks", "ANSIBLE_STDOUT_CALLBACK": "awx_display", "ANSIBLE_RETRY_FILES_ENABLED": "False", "ANSIBLE_HOST_KEY_CHECKING": "False", "AWX_ISOLATED_DATA_DIR": "/var/log/rhc-worker-playbook/ansible/1257ad22-25c4-4244-8fda-9b52eabb3826", "ANSIBLE_CACHE_PLUGIN": "jsonfile", "ANSIBLE_CACHE_PLUGIN_CONNECTION": "/var/log/rhc-worker-playbook/ansible/1257ad22-25c4-4244-8fda-9b52eabb3826/fact_cache", "RUNNER_OMIT_EVENTS": "False", "RUNNER_ONLY_FAILED_EVENTS": "False" } }
- split from
-
SAT-25183 Satellite cannot execute playbook containing "mount" module
-
- Backlog
-