Fix Archlinux variables configuration #250
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using this role on Archlinux as-is won't work because the variables defined in
Arch.yml
are not included due to missing task which would include them.This PR adds
include_vars
task forArchlinux
distro, the same way as for other distributions.Note that
ansible_distribution_version
returnNA
forArchlinux
, thus it's not used in this fix.console output from failed role installation
``` TASK [geerlingguy.postgresql : include_tasks] ****************************************************************************************************** included: /Users/retard/iac/ansible/_common/roles/geerlingguy.postgresql/tasks/variables.yml for vagrantTASK [geerlingguy.postgresql : Include OS-specific variables (Debian).] ****************************************************************************
skipping: [vagrant]
TASK [geerlingguy.postgresql : Include OS-specific variables (RedHat).] ****************************************************************************
skipping: [vagrant]
TASK [geerlingguy.postgresql : Include OS-specific variables (Amazon).] ****************************************************************************
skipping: [vagrant]
TASK [geerlingguy.postgresql : Include OS-specific variables (Fedora).] ****************************************************************************
skipping: [vagrant]
TASK [geerlingguy.postgresql : Define postgresql_packages.] ****************************************************************************************
fatal: [vagrant]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: '__postgresql_packages' is undefined. '__postgresql_packages' is undefined\n\nThe error appears to be in '/Users/retard/iac/ansible/_common/roles/geerlingguy.postgresql/tasks/variables.yml': line 22, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Define postgresql_packages.\n ^ here\n"}
PLAY RECAP *****************************************************************************************************************************************
vagrant : ok=2 changed=0 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0