ansible-role-icingaweb2/tasks/main.yml

32 lines
782 B
YAML

---
- name: Install dependencies packages
ansible.builtin.package:
name:
- apt-transport-https
tags: icingaweb2
- name: Add key repository
ansible.builtin.apt_key:
url: https://packages.icinga.com/icinga.key
tags: icingaweb2
- name: Add repository
ansible.builtin.apt_repository:
repo: 'deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main'
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