]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Moves all the include_vars tasks into vars.yml
authorAndrew Schoen <aschoen@redhat.com>
Wed, 1 Apr 2015 19:34:10 +0000 (14:34 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 2 Apr 2015 14:35:13 +0000 (09:35 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/main.yml
roles/testnode/tasks/vars.yml [new file with mode: 0644]

index a778cfa225d5e8cbf642cf71d2b46451aea0d8be..d23daa6ed3b78282b580cc51e3bbfc10dd17f9f2 100644 (file)
@@ -1,23 +1,6 @@
 ---
 # loading vars
-- name: Include package type specific vars.
-  include_vars: "{{ ansible_pkg_mgr }}_systems.yml"
-  tags:
-    - vars
-
-- name: Including major version specific variables.
-  include_vars: "{{ item }}"
-  with_first_found:
-    - "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
-    - empty.yml
-  tags:
-    - vars
-
-- name: Including version specific variables.
-  include_vars: "{{ item }}"
-  with_first_found:
-    - "{{ ansible_distribution | lower }}_{{ ansible_distribution_version }}.yml"
-    - empty.yml
+- include: vars.yml
   tags:
     - vars
 
diff --git a/roles/testnode/tasks/vars.yml b/roles/testnode/tasks/vars.yml
new file mode 100644 (file)
index 0000000..9f47d12
--- /dev/null
@@ -0,0 +1,15 @@
+---
+- name: Include package type specific vars.
+  include_vars: "{{ ansible_pkg_mgr }}_systems.yml"
+
+- name: Including major version specific variables.
+  include_vars: "{{ item }}"
+  with_first_found:
+    - "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
+    - empty.yml
+
+- name: Including version specific variables.
+  include_vars: "{{ item }}"
+  with_first_found:
+    - "{{ ansible_distribution | lower }}_{{ ansible_distribution_version }}.yml"
+    - empty.yml