ansible-role-icingaweb2/tasks/main.yml

40 lines
1 KiB
YAML

---
- name: Install dependencies packages
ansible.builtin.package:
name:
- apt-transport-https
tags: icingaweb2
- name: Add repository key
ansible.builtin.get_url:
url: https://packages.icinga.com/icinga.key
dest: /etc/apt/keyrings/icinga.asc
owner: root
group: root
mode: 0644
checksum: sha256:be677e07972ed57b99ffc2fd211379ac11b9c6a7c8d9460086b447b96b0a82bb
tags: icingaweb2
- name: Add repository
ansible.builtin.apt_repository:
repo: >-
deb [signed-by=/etc/apt/keyrings/icinga.asc]
https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main
filename: icinga
tags: icingaweb2
- name: Install packages
ansible.builtin.package:
name:
- icingaweb2
tags: icingaweb2
- name: Enable apache configuration
ansible.builtin.file:
src: /etc/apache2/conf-available/icingaweb2.conf
dest: /etc/apache2/sites-enabled/icingaweb2.conf
owner: root
group: root
state: link
notify: Reload apache
tags: icingaweb2