life-noc/ansible/roles/base/tasks/main.yml
2026-03-13 16:57:50 -04:00

34 lines
942 B
YAML

- name: install base prerequisites
ansible.builtin.apt:
name:
- apt-transport-https
- ca-certificates
- curl
- git
- gnupg
- python3
- python3-yaml
- unzip
state: present
update_cache: true
- name: download icinga archive keyring package
ansible.builtin.get_url:
url: "{{ life_noc_icinga_keyring_deb_url }}"
dest: /tmp/icinga-archive-keyring.deb
mode: "0644"
when: life_noc_icinga_repo_enabled | bool
- name: install icinga archive keyring package
ansible.builtin.apt:
deb: /tmp/icinga-archive-keyring.deb
state: present
when: life_noc_icinga_repo_enabled | bool
- name: configure official icinga apt repository
ansible.builtin.apt_repository:
repo: "deb https://packages.icinga.com/debian {{ life_noc_icinga_repo_distribution }} main"
filename: icinga
state: present
update_cache: true
when: life_noc_icinga_repo_enabled | bool