From fcc548f956bac6fc0e6de201dda81510c77f7067 Mon Sep 17 00:00:00 2001 From: Alexander Kurdyukov Date: Thu, 19 May 2016 17:36:42 +0300 Subject: [PATCH 1/2] hostname service is not available on redhat --- tasks/linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/linux.yml b/tasks/linux.yml index 00b4eed..c97598b 100644 --- a/tasks/linux.yml +++ b/tasks/linux.yml @@ -14,3 +14,4 @@ service: name=hostname state=restarted async: 45 poll: 0 + when: ansible_distribution in [ 'RedHat', 'CentOS' ] From fae3de71f00a37645779e3a5c58e7bf5a4947173 Mon Sep 17 00:00:00 2001 From: Alexander Kurdyukov Date: Thu, 19 May 2016 18:52:22 +0300 Subject: [PATCH 2/2] typo fix --- tasks/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/linux.yml b/tasks/linux.yml index c97598b..ba0d014 100644 --- a/tasks/linux.yml +++ b/tasks/linux.yml @@ -14,4 +14,4 @@ service: name=hostname state=restarted async: 45 poll: 0 - when: ansible_distribution in [ 'RedHat', 'CentOS' ] + when: ansible_distribution not in [ 'RedHat', 'CentOS' ]