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

Ansible should display log output in time zone format of the host system #30

Open
tepene opened this issue May 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tepene
Copy link
Collaborator

tepene commented May 2, 2024

Would be nice to set the timezone of the ansible container to the same value as the host system, so the output of the commands show the same time..

❯ just -f forge.just forge_clone-repository
podman exec ublue-os_forge-anvil-ansible.ublue.local ansible-playbook playbooks/project_clone.yml

PLAY [Clone project] ***********************************************************
Thursday 02 May 2024  06:14:15 +0000 (0:00:00.008)       0:00:00.008 ********** 

TASK [Gathering Facts] *********************************************************
ok: [host.ublue.local]
Thursday 02 May 2024  06:14:17 +0000 (0:00:01.734)       0:00:01.743 ********** 

TASK [Clone project] ***********************************************************
changed: [host.ublue.local]

PLAY RECAP *********************************************************************
host.ublue.local           : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

Thursday 02 May 2024  06:14:19 +0000 (0:00:01.726)       0:00:03.470 ********** 
=============================================================================== 
Gathering Facts --------------------------------------------------------- 1.73s
Clone project ----------------------------------------------------------- 1.73s
@tepene tepene added the enhancement New feature or request label May 2, 2024
@tepene tepene self-assigned this May 2, 2024
@tepene
Copy link
Collaborator Author

tepene commented May 10, 2024

I think this could be done by setting the TZ environment variable for the ansible and also for all other containers. The value can be looked up during setup with the timedatectl command. Needs some parsing though. But nothing very complicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant