You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the google-fluentd role on a Wharfhouse node produced this error:
TASK [google-fluentd : Copy custom configurations] *************************************************************
TASK [google-fluentd : Copy custom configurations] *************************************************************
changed: [35.237.211.232] => (item=apt_history.conf)
changed: [35.237.211.232] => (item=authlog.conf)
changed: [35.237.211.232] => (item=kernlog.conf)
changed: [35.237.211.232] => (item=letsencrypt.conf)
failed: [35.237.211.232] (item=redis.conf) => {"ansible_loop_var": "item", "changed": false, "item": "redis.conf", "msg": "Could not find or access 'redis.conf'\nSearched in:\n\t/home/tj/Programming/wharf/wharf/deploy/appsembler_roles/google-fluentd/templates/redis.conf\n\t/home/tj/Programming/wharf/wharf/deploy/appsembler_roles/google-fluentd/redis.conf\n\t/home/tj/Programming/wharf/wharf/deploy/appsembler_roles/google-fluentd/tasks/templates/redis.conf\n\t/home/tj/Programming/wharf/wharf/deploy/appsembler_roles/google-fluentd/tasks/redis.conf\n\t/home/tj/Programming/wharf/wharf/deploy/templates/redis.conf\n\t/home/tj/Programming/wharf/wharf/deploy/redis.conf on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
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/templates
I'm not sure how google_fluent_custom_config_templates is being set in the first place because its default value is an empty list:
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
: cde4edeI think there are two issues here. First, there are two tasks with the same name:
roles/google-fluentd/tasks/main.yml
Lines 31 to 43 in cde4ede
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:roles/google-fluentd/defaults/main.yml
Line 8 in cde4ede
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:
The text was updated successfully, but these errors were encountered: