]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Ensure extras repo enabled on CentOS
authorAdam Huffman <bloch@verdurin.com>
Sun, 16 Oct 2016 22:23:43 +0000 (23:23 +0100)
committerAdam Huffman <bloch@verdurin.com>
Sun, 16 Oct 2016 22:23:43 +0000 (23:23 +0100)
roles/ceph-mon/tasks/docker/pre_requisite.yml

index 9c27ee8cc5f4e654c7a56615ade500e9a04ed3d7..f4f29b6f52ae5d3324327af5ccf7c433e19b6943 100644 (file)
   tags:
     with_pkg
 
+# ensure extras enabled for docker
+- name: enable extras on centos
+  yum_repository:
+    name: extras
+    state: present
+    enabled: yes
+  when:
+    - ansible_os_family == 'RedHat'
+    - ansible_distribution == 'CentOS'
+  tags:
+    with_pkg
+
 - name: install pip on redhat
   yum:
     name: "{{ item }}"