mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
16 lines
422 B
YAML
16 lines
422 B
YAML
---
|
|
- name: Ensure Apache is installed.
|
|
yum:
|
|
name: "{{ item }}"
|
|
state: installed
|
|
enablerepo: "{{ apache_enablerepo }}"
|
|
with_items: apache_packages
|
|
|
|
- name: Configure Apache.
|
|
lineinfile:
|
|
dest: "{{ apache_server_root }}/conf/{{ apache_daemon }}.conf"
|
|
regexp: "{{ item.regexp }}"
|
|
line: "{{ item.line }}"
|
|
state: present
|
|
with_items: apache_ports_configuration_items
|
|
notify: restart apache
|