Add Suse configuration and proper service handling

- Suse listen configuration points to listen.conf file
- service handler uses service variable
This commit is contained in:
liquidat 2016-02-01 11:17:20 +01:00
parent 8b8d428062
commit 7aa1f2e0c8
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
---
- name: restart apache
service:
name: "{{ apache_daemon }}"
name: "{{ apache_service }}"
state: restarted

View file

@ -1,7 +1,7 @@
---
- name: Configure Apache.
lineinfile:
dest: "{{ apache_server_root }}/conf/{{ apache_daemon }}.conf"
dest: "{{ apache_server_root }}/listen.conf"
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present