]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Change enabling of extras repo for CentOS to use ini_file 1042/head
authorAdam Huffman <bloch@verdurin.com>
Wed, 19 Oct 2016 21:15:14 +0000 (22:15 +0100)
committerAdam Huffman <bloch@verdurin.com>
Wed, 19 Oct 2016 21:15:14 +0000 (22:15 +0100)
Signed-off-by: Adam Huffman <bloch@verdurin.com>
roles/ceph-mds/tasks/docker/pre_requisite.yml
roles/ceph-mon/tasks/docker/pre_requisite.yml
roles/ceph-nfs/tasks/docker/pre_requisite.yml
roles/ceph-osd/tasks/docker/pre_requisite.yml
roles/ceph-rbd-mirror/tasks/docker/pre_requisite.yml
roles/ceph-restapi/tasks/docker/pre_requisite.yml
roles/ceph-rgw/tasks/docker/pre_requisite.yml

index a3ef113f3c3deff9372f0d2fc3ba94fc6d23f5ec..96013112192e22c831225688bb9cb3ab11a5ddcb 100644 (file)
   failed_when: false
 
 - name: enable extras repo for centos
-  yum_repository:
-    name: extras
-    state: present
-    enabled: yes
+  ini_file:
+    dest: /etc/yum.repos.d/CentOS-Base.repo
+    section: extras
+    option: enabled
+    value: 1
   when: ansible_distribution == 'CentOS'
   tags:
     with_pkg
index ec44581a3b43afc3890b4423903b662fe89d59ac..1e43af4e8867d20db675f153a4cca351eede6c89 100644 (file)
     with_pkg
 
 # ensure extras enabled for docker
-- name: enable extras on centos
-  yum_repository:
-    name: extras
-    state: present
-    enabled: yes
-  when:
-    - ansible_distribution == 'CentOS'
+- 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'
   tags:
     with_pkg
 
index 27142aa46ca7a78d95ac6b9a38d5fe3ea33ddda5..7a7b807b83d92d0abdb907831ac17a9e6f03c9d7 100644 (file)
     with_pkg
 
 - name: enable extras repo for centos
-  yum_repository:
-    name: extras
-    state: present
-    enabled: yes
+  ini_file:
+    dest: /etc/yum.repos.d/CentOS-Base.repo
+    section: extras
+    option: enabled
+    value: 1
   when: ansible_distribution == 'CentOS'
   tags:
     with_pkg
index ab7e21057fa6cdc196b6c03b39388c36a6c784d1..24f87758ffa5ed58d8853ca443e7a10e52bbd8f0 100644 (file)
   tags:
     with_pkg
 
+- 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'
+  tags:
+    with_pkg
+
 - name: install docker-engine on redhat
   yum:
     name: "{{ item }}"
index 52514026484deb59f03cd01d8a7ee3fd47bede4c..713a762d54974dcf08b8ff75e35fa67796351716 100644 (file)
   failed_when: false
 
 - name: enable extras repo for centos
-  yum_repository:
-    name: extras
-    state: present
-    enabled: yes
+  ini_file:
+    dest: /etc/yum.repos.d/CentOS-Base.repo
+    section: extras
+    option: enabled
+    value: 1
   when: ansible_distribution == 'CentOS'
   tags:
     with_pkg
index d004714ad07243c8df5fbc0ea70902583e97a38c..29ccc00739a97526eaa65e6fde4e1b76dcf66118 100644 (file)
   tags:
     with_pkg
 
-- 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'
   tags:
     with_pkg
index d135a7f1db31dd74502acafe2373ba4998724675..7427b4e6fb8123605d6e450f0bc520a4111730ad 100644 (file)
   tags:
     with_pkg
     
-- 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'
   tags:
     with_pkg