]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: fix var file loading order 104/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 12 Aug 2015 15:11:03 +0000 (10:11 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 12 Aug 2015 15:11:03 +0000 (10:11 -0500)
We want to load distro specific variables before we load major version
specific variables. Loading of vars should happen in this order: package
manager, distro, major version, version.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/vars.yml

index cc7a7045c376248d4b29b9f5512d09ba4743afdb..2c955d14a82d2419c85b682e156679adfc60fb13 100644 (file)
@@ -2,16 +2,16 @@
 - name: Include package type specific vars.
   include_vars: "{{ ansible_pkg_mgr }}_systems.yml"
 
-- name: Including major version specific variables.
+- name: Including distro specific variables.
   include_vars: "{{ item }}"
   with_first_found:
-    - "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
+    - "{{ ansible_distribution | lower }}.yml"
     - empty.yml
 
-- name: Including distro specific variables.
+- name: Including major version specific variables.
   include_vars: "{{ item }}"
   with_first_found:
-    - "{{ ansible_distribution | lower }}.yml"
+    - "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
     - empty.yml
 
 - name: Including version specific variables.