Good morning. I have two roles in a multi-role playbook, for yum, then chrony. The yum module works fine, but the chrony playbook fails on copying a template. The odd thing is, the error I get indicates ansible is looking in the yum module for chrony’s template. here is the specific error message;
Files, templates, plugins, etc. that live in various local roles aren’t available to your playbook tasks until those roles are accessed, for example through the roles: playbook keyword or import_role or include_role.
From your description, it appears that you’ve accessed your yum role but not your chrony role at the point you tried to use your etc.chrony.conf.j2 template.
What I did today was to remove mitogen and run it with “normal” ssh and it did not have that problem. That makes it a mitogen problem I think. I’ll find a bug report with them. I should have thought of this earlier. Thanks for all the help.
Post a simple reproducer here before you file the issue. Included or
depending role might be causing the problem. This might be an issue
with Ansible. See https://stackoverflow.com/a/76994183/6482561
Hello Kathy,
I cannot answer the template question, but for configuring Chrony, have you considered using the RHEL System Roles.timesync role (or it’s upstream project linux-system-roles)?