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 @@ ...@@ -34,10 +34,10 @@
pkg: pkg:
- monitoring-plugins-systemd - monitoring-plugins-systemd
state: present state: present
default_release: "{{ ansible_distribution_release }}-backports" default_release: "{{ ansible_facts.distribution_release }}-backports"
update_cache: false update_cache: false
when: when:
- ansible_distribution_release == "bullseye" - ansible_facts.distribution_release == "bullseye"
- icinga_plugin_systemd.rc == 0 - icinga_plugin_systemd.rc == 0
- name: Bookworm packages present - name: Bookworm packages present
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
pkg: pkg:
- monitoring-plugins-systemd - monitoring-plugins-systemd
state: present 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 - name: Check if /usr/lib/nagios/plugins/check_systemd exists
ansible.builtin.stat: ansible.builtin.stat:
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
- icinga2-common - icinga2-common
- vim-icinga2 - vim-icinga2
state: latest state: latest
default_release: "icinga-{{ ansible_distribution_release }}" default_release: "icinga-{{ ansible_facts.distribution_release }}"
update_cache: false update_cache: false
- name: Icinga2 vim syntax highlighting directory present - name: Icinga2 vim syntax highlighting directory present
......
# {{ ansible_managed }} # {{ ansible_managed }}
Types: deb Types: deb
URIs: https://packages.icinga.com/{{ ansible_distribution | lower }} URIs: https://packages.icinga.com/{{ ansible_facts.distribution | lower }}
Suites: icinga-{{ ansible_distribution_release }} Suites: icinga-{{ ansible_facts.distribution_release }}
Architectures: {{ ansible_facts.ansible_local.dpkg.arch }} Architectures: {{ ansible_facts.ansible_local.dpkg.arch }}
Components: main Components: main
Signed-By: /etc/apt/keyrings/icinga.gpg 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