mirror of
https://github.com/geerlingguy/ansible-role-postgresql.git
synced 2024-11-11 13:50:50 -05:00
Add Fedora support
This commit is contained in:
parent
e61751f344
commit
3c83001df6
5 changed files with 43 additions and 1 deletions
|
@ -12,6 +12,11 @@ galaxy_info:
|
|||
versions:
|
||||
- 6
|
||||
- 7
|
||||
- name: Fedora
|
||||
versions:
|
||||
- 27
|
||||
- 28
|
||||
- 29
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- all
|
||||
|
|
|
@ -6,7 +6,11 @@
|
|||
|
||||
- name: Include OS-specific variables (RedHat).
|
||||
include_vars: "{{ ansible_os_family }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
||||
when: ansible_os_family == 'RedHat'
|
||||
when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
|
||||
|
||||
- name: Include OS-specific variables (Fedora).
|
||||
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
||||
when: ansible_distribution == 'Fedora'
|
||||
|
||||
- name: Define postgresql_packages.
|
||||
set_fact:
|
||||
|
|
11
vars/Fedora-27.yml
Normal file
11
vars/Fedora-27.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
__postgresql_version: "9.6"
|
||||
__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
|
11
vars/Fedora-28.yml
Normal file
11
vars/Fedora-28.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
__postgresql_version: "10.5"
|
||||
__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
|
11
vars/Fedora-29.yml
Normal file
11
vars/Fedora-29.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
__postgresql_version: "10.5"
|
||||
__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
|
Loading…
Reference in a new issue