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

18 lines
395 B
YAML
Raw Normal View History

2021-04-26 00:07:37 +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
- name: install apache2 and related packages
ansible.builtin.apt:
name: "{{ apache2_module_packages }}"
2021-04-26 00:07:37 +02:00
- name: start and enable apache2
ansible.builtin.service:
2021-04-26 00:07:37 +02:00
name: apache2
state: started
enabled: yes