From 7aa1f2e0c8fd964c458918ebf0f020a9dcdb77a1 Mon Sep 17 00:00:00 2001 From: liquidat Date: Mon, 1 Feb 2016 11:17:20 +0100 Subject: [PATCH] Add Suse configuration and proper service handling - Suse listen configuration points to listen.conf file - service handler uses service variable --- handlers/main.yml | 2 +- tasks/configure-Suse.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 8e7921f..25d14ec 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,5 +1,5 @@ --- - name: restart apache service: - name: "{{ apache_daemon }}" + name: "{{ apache_service }}" state: restarted diff --git a/tasks/configure-Suse.yml b/tasks/configure-Suse.yml index 3df9692..87a0c0f 100644 --- a/tasks/configure-Suse.yml +++ b/tasks/configure-Suse.yml @@ -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