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

[BUG]: Log file location #13

Open
fadnincx opened this issue Jan 12, 2023 · 3 comments
Open

[BUG]: Log file location #13

fadnincx opened this issue Jan 12, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@fadnincx
Copy link
Collaborator

Description of the bug

Currently the log is always written to /var/log/potos/ansible.log On a customer client this directory doesn't exists and we probably want to write the log to /var/log/<clientname>/ansible.log

Steps To Reproduce

Additional Information

No response

@fadnincx fadnincx added the bug Something isn't working label Jan 12, 2023
@nis65
Copy link

nis65 commented Apr 30, 2023

I am hit with this bug in my client too. My current workaround is to
do after installation on the client:

ln -s /var/log/mlc /var/log/potos

Then I get the logs back from mlc-ansible-pull:

root@mlc:/var/log# ls -l mlc
-rw-r--r-- 1 root root 195054 Apr 30 09:00 ansible.log
-rw-r--r-- 1 root root      0 Apr 30 00:00 setup.log
-rw-r--r-- 1 root root   3810 Apr 22 16:45 setup.log.1.gz

Would be nice to have that fixed, but I am unsure what exactly the desired situation is...

@fadnincx
Copy link
Collaborator Author

fadnincx commented May 1, 2023

Yes that would be a workaround. Tbh I haven't thought this issue through 100% yet. however, I would find a solution without there being /var/log/potos the nicest. This would however require ansible.cfg to be (at least partially) configurable (probably a good idea too 🤔)

@fadnincx
Copy link
Collaborator Author

fadnincx commented May 4, 2023

At least for daily execution should be fixed with ansible-role-potos_basics#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants