13 lines
322 B
YAML
13 lines
322 B
YAML
- name: Install Apache2 HTTP server
|
|
ansible.builtin.apt:
|
|
name: apache2
|
|
update_cache: true
|
|
state: latest
|
|
- name: Enable Apache2 Header mod
|
|
community.general.apache2_module:
|
|
name: headers
|
|
- name: Start Apache2 HTTP server
|
|
ansible.builtin.service:
|
|
name: apache2
|
|
state: started
|
|
enabled: true
|