Open tkeemon opened 4 years ago
@tkeemon wharf is setting google_fluent_custom_config_templates
here: https://github.com/appsembler/wharf/blob/develop/deploy/base_vars/all#L47
Also, the first task is running, it just doesn't do anything because google_fluent_custom_config_files
is an empty list. I've never seen ansible skip a task based on the name.
Running the google-fluentd role on a Wharfhouse node produced this error:
I'm on the latest commit on
develop
: https://github.com/appsembler/roles/commit/cde4edefb9578849d6bcc54c7628486882e132dfI think there are two issues here. First, there are two tasks with the same name: https://github.com/appsembler/roles/blob/cde4edefb9578849d6bcc54c7628486882e132df/google-fluentd/tasks/main.yml#L31-L43
In my experience, this causes Ansible to silently skip the first task (which it looks like happened here). If the older task isn't needed, then it should probably be deleted.
I'm having more trouble figuring out what's happening with the second issue (the actual failure). It looks like Ansible is looking locally for a
redis.conf
file and not finding it. I'm not sure why Ansible is looking for that file because there's no template with that name in the repo: https://github.com/appsembler/roles/tree/develop/google-fluentd/templatesI'm not sure how
google_fluent_custom_config_templates
is being set in the first place because its default value is an empty list: https://github.com/appsembler/roles/blob/cde4edefb9578849d6bcc54c7628486882e132df/google-fluentd/defaults/main.yml#L8 and we're not overriding that anywhere in the Wharf repo.One thing worth noting is that the remote directory the config files are supposed to be copied into is full of files not created by Ansible: