ansible-role-icingaweb2/tasks/main.yml

33 lines
782 B
YAML
Raw Normal View History

2021-08-18 09:53:35 +00:00
---
- 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