Icingaweb2/ANSIBLE/roles/httpd/tasks/httpd_install.yml

22 lines
453 B
YAML

---
- name: Install Apache2 and plugins
ansible.builtin.apt:
name: "{{ httpd_pkgs + httpd_pkgs_plugins }}"
state: present
update_cache: true
- name: Ensure site root exists
ansible.builtin.file:
path: "{{ httpd_site_root }}"
state: directory
owner: www-data
group: www-data
mode: '0755'
- name: Ensure Apache is running and enabled
ansible.builtin.service:
name: apache2
state: started
enabled: true