ansible-role-icingaweb2/tasks/main.yml

41 lines
1 KiB
YAML
Raw Normal View History

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