From 3c3e922786f09e3bcee36aee8da7a2881f0234cf Mon Sep 17 00:00:00 2001 From: micafer Date: Thu, 14 Jan 2016 11:43:46 +0100 Subject: [PATCH] Minor changes in conf-ansible.yml --- contextualization/conf-ansible.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index 228458c2b..eadac520c 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -9,6 +9,10 @@ - name: Install libselinux-python in RH action: yum pkg=libselinux-python state=installed when: ansible_os_family == "RedHat" + + - name: Apt-get update + apt: update_cache=yes + when: ansible_os_family == "Debian" - name: EPEL template: src=utils/templates/epel.repo dest=/etc/yum.repos.d/epel.repo @@ -82,7 +86,7 @@ when: ansible_os_family == "RedHat" and ansible_distribution_major_version < 6 - name: Disable SELinux - command: /usr/sbin/setenforce 0 + selinux: state=disabled when: ansible_os_family == "RedHat" ignore_errors: yes