-
Notifications
You must be signed in to change notification settings - Fork 138
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
node_exporter role errors out when templating the systemd service #452
Comments
I believe that you are correct in the assumption that the config fails due to the fact that the package facts are missing, but something looks off in that log, there are missing tasks such as What does your playbook and inventory look like? Might be useful to see the output of |
I invoke it with ---
- hosts: all
roles:
- ssh-keys
- prometheus.prometheus.node_exporter This is the output of
This is the hosts file: [nfsserver]
blueberry
[kvmhost]
xerophyte
[webserver]
cherry
[mailserver]
dragonfruit
[backupserver]
spinach
[monitoringserver]
spinach
[teleport]
apple
[clients]
blueberry
arcadia |
This is the culpit, the package facts step is tagged with |
Oh my .. Sorry for not spotting this myself! Thanks a ton for the help! ❤️ |
No problem, it is however something that we should probably fix since you should be able to run the configure without install. |
Feel free to reopen/re-title this issue as a reminder if you want! |
If you want to PR-it up then I'd be happy to accept it |
I had a quick look, but tbh I'm not sure what needs to be done there as the task already has the ansible/roles/_common/tasks/preflight.yml Lines 68 to 76 in 1231802
|
Yes but the install tag should be removed since the package facts are currently only used by configuration tasks |
Since the issue sounds really similar to the issue #342 which I previously opened I also made sure that packages are generally detected when doing a
ansible -m ansible.builtin.package_facts cherry
but I think the fact collection for packages is not even run at all. Also issue #451 sounds similar given the symptoms but seems to have a entirely different root cause.Versions:
Click to see log of full run
The text was updated successfully, but these errors were encountered: