Closed flotho closed 1 year ago
hum... obviously, not everything is correctly set :
[root@localhost ~]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=
looks like something recent https://bugzilla.redhat.com/show_bug.cgi?id=2000878
About the flushing of handlers;
If there is any ansible.builtin.meta: flush_handlers
, it will flush all collected handlers. This means you can indeed see handlers of role x
while the role that's running is y
.
I'm not sure if that answers your question, let me know if you need something else.
Hi,
I'm running mutiple of your roles in a playbook :
My host is a rocky linux 9 uptodate. The first time I run this sequence, the flush handler in openssh is triggering an event causing an issue on the locale :
Even if we have an issue there, y=the locale has correctly been set.
Moreover, running a second time the same sequence succeeded.
AFAICS, this part of the code https://github.com/robertdebock/ansible-collection-roles/blob/master/roles/openssh/tasks/main.yml#L56 is triggering this other part : https://github.com/robertdebock/ansible-collection-roles/blob/master/roles/locale/handlers/main.yml#L4
I don't know what to do