Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete output to log file #35

Open
cf-sewe opened this issue Nov 3, 2023 · 0 comments
Open

Incomplete output to log file #35

cf-sewe opened this issue Nov 3, 2023 · 0 comments

Comments

@cf-sewe
Copy link

cf-sewe commented Nov 3, 2023

When I enable Ansible logging with log_path = ./ansible.log, the log output is incomplete and is missing the tasks being executed. Could this be improved please, because we need the logs for auditing purposes?

STDOUT:

[08:45:47] Gathering Facts
↳  jump | SUCCESS | 991ms
[08:45:48]     ↳ common/packages: Install epel repository
↳  jump | SUCCESS | 1.26s
[08:45:49]     ↳ common/packages: Ensure common packages are installed
↳  jump | SUCCESS | 1.06s
[08:45:50]     ↳ common/packages: Ensure forbidden packages are not installed
↳  jump | SUCCESS | 1.09s

ansible.log:

2023-11-03 08:45:48,440 p=1285948 u=ansible n=ansible | ↳  jump | SUCCESS | 991ms
2023-11-03 08:45:49,720 p=1285948 u=ansible n=ansible | ↳  jump | SUCCESS | 1.26s
2023-11-03 08:45:50,781 p=1285948 u=ansible n=ansible | ↳  jump | SUCCESS | 1.06s
2023-11-03 08:45:51,877 p=1285948 u=ansible n=ansible | ↳  jump | SUCCESS | 1.09s
2023-11-03 08:45:52,176 p=1285948 u=ansible n=ansible |  [ERROR]: User interrupted execution

ansible.cfg:

[defaults]
ansible_managed = Ansible managed: {file}
force_color = True
force_valid_group_names = ignore
host_key_checking = False
inject_facts_as_vars = True
log_path = ./ansible.log
nocows = 1
remote_user = ansible
retry_files_enabled = False
roles_path = ./roles
callback_plugins = ./.config/plugins/callback
stdout_callback = anstomlog

[connection]
pipelining = True

[ssh_connection]
pipelining = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant