ansible-collection-webserver/roles/apache2/tasks/install.yml

18 lines
396 B
YAML
Raw Normal View History

2021-04-26 00:07:37 +02:00
---
2024-08-11 03:39:26 +02:00
- name: Install Apache2 and related packages
ansible.builtin.apt:
2021-04-26 00:07:37 +02:00
name:
- apache2
- ssl-cert # snakeoil cert used for optional tls bootstrapping
2024-08-11 03:39:26 +02:00
- name: Install Apache2 and related packages
ansible.builtin.apt:
name: "{{ apache2_module_packages }}"
2024-08-11 03:39:26 +02:00
- name: Start and enable Apache2
ansible.builtin.service:
2021-04-26 00:07:37 +02:00
name: apache2
state: started
2024-08-11 03:39:26 +02:00
enabled: true