Merge pull request #195 from cwilper/amazon-2-support

Add support for Amazon-2 (same as RedHat-7)
This commit is contained in:
Jeff Geerling 2021-11-26 13:01:43 -06:00 committed by GitHub
commit c4f4d84ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -48,6 +48,7 @@ jobs:
- ubuntu1804
- debian10
- debian11
- amazonlinux2
steps:
- name: Check out the codebase.

View File

@ -9,6 +9,11 @@
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != 'Fedora'
- ansible_distribution != 'Amazon'
- name: Include OS-specific variables (Amazon).
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
when: ansible_distribution == 'Amazon'
- name: Include OS-specific variables (Fedora).
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version.split('.')[0] }}.yml"

11
vars/Amazon-2.yml Normal file
View File

@ -0,0 +1,11 @@
---
__postgresql_version: "9.2"
__postgresql_data_dir: "/var/lib/pgsql/data"
__postgresql_bin_path: "/usr/bin"
__postgresql_config_path: "/var/lib/pgsql/data"
__postgresql_daemon: postgresql
__postgresql_packages:
- postgresql
- postgresql-server
- postgresql-contrib
- postgresql-libs