From 3b2bd02c140345dc5bf1a0c02bd8b07352c53c51 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 25 Oct 2016 14:16:42 -0500 Subject: [PATCH] ceph-osd: use ini_file instead of yum_repository to enable Centos extras Fixes issue #1041 Signed-off-by: Andrew Schoen Resolves: issue#1041 --- roles/ceph-osd/tasks/pre_requisite.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/roles/ceph-osd/tasks/pre_requisite.yml b/roles/ceph-osd/tasks/pre_requisite.yml index 941e12304..e42d5d2be 100644 --- a/roles/ceph-osd/tasks/pre_requisite.yml +++ b/roles/ceph-osd/tasks/pre_requisite.yml @@ -5,11 +5,12 @@ state: present when: ansible_os_family == 'Debian' -- name: enable extras repo on centos - yum_repository: - name: extras - state: present - enabled: yes +- name: enable extras repo for centos + ini_file: + dest: /etc/yum.repos.d/CentOS-Base.repo + section: extras + option: enabled + value: 1 when: ansible_distribution == 'CentOS' - name: install redhat dependencies via yum