]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Split out tasks into yum_systems.yml
authorZack Cerza <zack@redhat.com>
Wed, 20 Jan 2016 17:17:18 +0000 (10:17 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 20 Jan 2016 17:17:18 +0000 (10:17 -0700)
Similar to how the testnodes role works. apt_systems.yml will be added
when it's needed.

Signed-off-by: Zack Cerza <zack@redhat.com>
roles/common/tasks/main.yml
roles/common/tasks/yum_systems.yml [new file with mode: 0644]

index 272636157b39b418a49fb4fd95975b56323d60d4..bfb22a9bc5326daf24a25965013c83a24eff94a7 100644 (file)
     # We need these vars for the entitlements tag to work
     - entitlements
 
-# configure Red Hat entitlements with subscription-manager
-- include: rhel-entitlements.yml
-  when: ansible_distribution == 'RedHat'
-  tags:
-    - entitlements
+# configure things specific to yum systems
+- include: yum_systems.yml
+  when: ansible_pkg_mgr == "yum"
 
 # configure Kerberos
 - include: kerberos.yml
   tags:
     - kerberos
-
-# create and manage epel.repo
-- include: epel.yml
-  when:
-    ansible_distribution == "CentOS" or
-    ansible_distribution == 'RedHat'
-  tags:
-    - epel
-    - repos
diff --git a/roles/common/tasks/yum_systems.yml b/roles/common/tasks/yum_systems.yml
new file mode 100644 (file)
index 0000000..fce55c8
--- /dev/null
@@ -0,0 +1,15 @@
+---
+# configure Red Hat entitlements with subscription-manager
+- include: rhel-entitlements.yml
+  when: ansible_distribution == 'RedHat'
+  tags:
+    - entitlements
+
+# create and manage epel.repo
+- include: epel.yml
+  when:
+    ansible_distribution == "CentOS" or
+    ansible_distribution == 'RedHat'
+  tags:
+    - epel
+    - repos