mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
9d5044ac1a
* CI tests: add note to main.yml * improve
25 lines
1 KiB
YAML
25 lines
1 KiB
YAML
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
- name: Include distribution specific variables
|
|
include_vars: "{{ lookup('first_found', params) }}"
|
|
vars:
|
|
params:
|
|
files:
|
|
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
- default.yml
|
|
paths:
|
|
- vars
|
|
|
|
# Only run on CentOS 7 because there is a stack trace on CentOS 8 because the module
|
|
# is looking for the incorrect version of plpython.
|
|
# https://gist.github.com/samdoran/8fc1b4ae834d3e66d1895d087419b8d8
|
|
- name: Initial CI tests of postgresql_lang module
|
|
when:
|
|
- ansible_facts.distribution == 'CentOS'
|
|
- ansible_facts.distribution_major_version is version ('7', '==')
|
|
block:
|
|
- include_tasks: postgresql_lang_initial.yml
|
|
- include_tasks: postgresql_lang_add_owner_param.yml
|