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 - name: restart apache
service: service:
name: "{{ apache_daemon }}" name: "{{ apache_service }}"
state: restarted state: restarted

View file

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