ansible-role-icingaweb2/tasks/main.yml

33 lines
782 B
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:05:41 +00:00
- name: Add key repository
2021-08-18 09:53:35 +00:00
ansible.builtin.apt_key:
url: https://packages.icinga.com/icinga.key
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:
repo: 'deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main'
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