--- - 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 - icingaweb2-module-monitoring 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