ansible-role-apache/tasks/configure-Solaris.yml

21 lines
546 B
YAML
Raw Normal View History

---
- name: Configure Apache.
lineinfile:
2016-02-01 11:29:10 +01:00
dest: "{{ apache_server_root }}/{{ apache_daemon }}.conf"
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
2020-08-20 19:22:09 +02:00
mode: 0644
with_items: "{{ apache_ports_configuration_items }}"
notify: restart apache
- name: Add apache vhosts configuration.
template:
2016-09-02 13:37:41 +02:00
src: "{{ apache_vhosts_template }}"
dest: "{{ apache_conf_path }}/{{ apache_vhosts_filename }}"
owner: root
group: root
mode: 0644
notify: restart apache
when: apache_create_vhosts | bool