ansible
ansible copied to clipboard
feat(snmp_exporter): fix dry-runs on new machines
This does not fail a dry run on machines where snmp_exporter is not yet installed.
Is this really needed? ansible.builtin.systemd has full support for check_mode
Is this really needed?
ansible.builtin.systemdhas full support for check_mode
From what I have noticed: if you run this role in check mode on a blank slate, the unitfile is not put unto the system. When the service is started (or restarted) the dry-run will error out with Could not find the requested service snmp_exporter: host, stopping the dry-run. I can try to do some more experiments.