Skip to content
Snippets Groups Projects
Verified Commit 9b415d7c authored by Chris Croome's avatar Chris Croome
Browse files

updates for ANSIBLE_INJECT_FACT_VARS: "0"

parent 213a4644
No related branches found
No related tags found
No related merge requests found
Pipeline #35022 passed
......@@ -34,10 +34,10 @@
pkg:
- monitoring-plugins-systemd
state: present
default_release: "{{ ansible_distribution_release }}-backports"
default_release: "{{ ansible_facts.distribution_release }}-backports"
update_cache: false
when:
- ansible_distribution_release == "bullseye"
- ansible_facts.distribution_release == "bullseye"
- icinga_plugin_systemd.rc == 0
- name: Bookworm packages present
......@@ -45,7 +45,7 @@
pkg:
- monitoring-plugins-systemd
state: present
when: ansible_distribution_release is regex('^bookworm|jessie|noble|trixie$')
when: ansible_facts.distribution_release is regex('^bookworm|jessie|noble|trixie$')
- name: Check if /usr/lib/nagios/plugins/check_systemd exists
ansible.builtin.stat:
......@@ -84,7 +84,7 @@
- icinga2-common
- vim-icinga2
state: latest
default_release: "icinga-{{ ansible_distribution_release }}"
default_release: "icinga-{{ ansible_facts.distribution_release }}"
update_cache: false
- name: Icinga2 vim syntax highlighting directory present
......
# {{ ansible_managed }}
Types: deb
URIs: https://packages.icinga.com/{{ ansible_distribution | lower }}
Suites: icinga-{{ ansible_distribution_release }}
URIs: https://packages.icinga.com/{{ ansible_facts.distribution | lower }}
Suites: icinga-{{ ansible_facts.distribution_release }}
Architectures: {{ ansible_facts.ansible_local.dpkg.arch }}
Components: main
Signed-By: /etc/apt/keyrings/icinga.gpg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment