-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Problem Summary
Running playbooks using Ansible Navigator leaves artifact files which make a mess in the directory where the user is running playbooks from. This makes it messy for students in the workshop to understand the contents of the directory they are working in, and is an unwieldy way to log executions. Can these be logged in a different directory to $pwd by default so that no mess is made?
Example:
[student1@ansible-1 ansible-files]$ pwd
/home/student1/ansible-files
[student1@ansible-1 ansible-files]$ ls -la
total 1168
drwxrwxr-x. 3 student1 student1 4096 Nov 15 05:55 .
drwx------. 11 student1 student1 4096 Nov 15 05:55 ..
-rw-rw-r--. 1 student1 student1 19550 Nov 15 05:55 ansible-navigator.log
-rw-rw-r--. 1 student1 student1 40969 Nov 15 03:43 apache-artifact-2021-11-15T03:43:46.320651+00:00.json
-rw-rw-r--. 1 student1 student1 178 Nov 15 03:46 apache-artifact-2021-11-15T03:46:54.771654+00:00.json
-rw-rw-r--. 1 student1 student1 178 Nov 15 03:47 apache-artifact-2021-11-15T03:47:02.921073+00:00.json
-rw-rw-r--. 1 student1 student1 178 Nov 15 03:47 apache-artifact-2021-11-15T03:47:05.530620+00:00.json
-rw-rw-r--. 1 student1 student1 55066 Nov 15 03:47 apache-artifact-2021-11-15T03:47:16.908124+00:00.json
-rw-rw-r--. 1 student1 student1 178 Nov 15 05:45 apache-artifact-2021-11-15T05:45:01.030259+00:00.json
-rw-rw-r--. 1 student1 student1 56085 Nov 15 05:45 apache-artifact-2021-11-15T05:45:15.492993+00:00.json
-rw-rw-r--. 1 student1 student1 59716 Nov 15 05:48 apache-artifact-2021-11-15T05:48:33.673870+00:00.json
-rw-rw-r--. 1 student1 student1 176683 Nov 15 05:53 apache-artifact-2021-11-15T05:53:45.118101+00:00.json
-rw-rw-r--. 1 student1 student1 361 Nov 15 05:53 apache.yml
-rw-rw-r--. 1 student1 student1 178 Nov 15 05:45 check_httpd-artifact-2021-11-15T05:45:57.553333+00:00.json
-rw-rw-r--. 1 student1 student1 178 Nov 15 05:46 check_httpd-artifact-2021-11-15T05:46:00.092586+00:00.json
-rw-rw-r--. 1 student1 student1 36801 Nov 15 05:46 check_httpd-artifact-2021-11-15T05:46:07.448203+00:00.json
-rw-rw-r--. 1 student1 student1 178 Nov 15 05:54 check_httpd-artifact-2021-11-15T05:54:28.531940+00:00.json
-rw-rw-r--. 1 student1 student1 36577 Nov 15 05:54 check_httpd-artifact-2021-11-15T05:54:40.342643+00:00.json
-rw-rw-r--. 1 student1 student1 36244 Nov 15 05:54 check_httpd-artifact-2021-11-15T05:54:59.448089+00:00.json
-rw-rw-r--. 1 student1 student1 114166 Nov 15 05:55 check_httpd-artifact-2021-11-15T05:55:24.866599+00:00.json
-rw-rw-r--. 1 student1 student1 198 Nov 15 05:55 check_httpd.yml
drwxrwxr-x. 2 student1 student1 22 Nov 15 05:47 files
-rw-rw-r--. 1 student1 student1 248338 Nov 15 03:45 package-artifact-2021-11-15T03:45:37.308074+00:00.json
-rw-rw-r--. 1 student1 student1 248006 Nov 15 03:46 package-artifact-2021-11-15T03:46:07.579370+00:00.json
-rw-rw-r--. 1 student1 student1 420 Nov 15 03:45 package.yml
Issue Type
Bug
Extra vars file
N/A
Ansible Playbook Output
N/A
Ansible Version
[student1@ansible-1 ansible-files]$ ansible --version
ansible [core 2.11.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/student1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.8/site-packages/ansible
ansible collection location = /home/student1/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.8.8 (default, Aug 11 2021, 06:52:42) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
jinja version = 2.10.3
libyaml = True
Ansible Configuration
[student1@ansible-1 ansible-files]$ ansible-config dump --only-changed
ACTION_WARNINGS(/etc/ansible/ansible.cfg) = False
COLLECTIONS_ON_ANSIBLE_VERSION_MISMATCH(/etc/ansible/ansible.cfg) = ignore
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = ['/home/student1/lab_inventory/hosts']
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = yaml
DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 60
DEPRECATION_WARNINGS(/etc/ansible/ansible.cfg) = False
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
INTERPRETER_PYTHON(/etc/ansible/ansible.cfg) = auto_silent
PERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 200
PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 200
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False
SYSTEM_WARNINGS(/etc/ansible/ansible.cfg) = False
Ansible Execution Node
Ansible Controller (previously known as Ansible Tower)
Operating System
Running from Ansible-navigator in an Ansible Execution environment.
Metadata
Metadata
Assignees
Labels
No labels