Reverse order of variable inclusions so specific vars can override generics.

This commit is contained in:
Jeff Geerling 2022-02-02 13:21:11 -06:00
parent 7112b29de5
commit 6e0cb0e02a
1 changed files with 7 additions and 7 deletions

View File

@ -1,12 +1,5 @@
---
# Variable setup.
- name: Include distribution and version-specific vars.
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
skip: true
- name: Set the default PHP version for Debian-based OSes.
set_fact:
php_default_version_debian: "{{ __php_default_version_debian }}"
@ -15,6 +8,13 @@
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
- name: Include distribution and version-specific vars.
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
skip: true
- name: Define php_packages.
set_fact:
php_packages: "{{ __php_packages | list }}"