ansible-role-apache/tasks/setup-RedHat.yml

17 lines
422 B
YAML
Raw Normal View History

---
- name: Ensure Apache is installed.
2014-10-06 02:13:00 +02:00
yum:
name: "{{ item }}"
state: installed
enablerepo: "{{ apache_enablerepo }}"
with_items: apache_packages
- name: Configure Apache.
2014-10-06 02:13:00 +02:00
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