diff --git a/meta/main.yml b/meta/main.yml index ccdd857..68c7082 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -12,6 +12,11 @@ galaxy_info: versions: - 6 - 7 + - name: Fedora + versions: + - 27 + - 28 + - 29 - name: Ubuntu versions: - all diff --git a/tasks/variables.yml b/tasks/variables.yml index df3538b..0c4384f 100644 --- a/tasks/variables.yml +++ b/tasks/variables.yml @@ -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: diff --git a/vars/Fedora-27.yml b/vars/Fedora-27.yml new file mode 100644 index 0000000..1dcad43 --- /dev/null +++ b/vars/Fedora-27.yml @@ -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 diff --git a/vars/Fedora-28.yml b/vars/Fedora-28.yml new file mode 100644 index 0000000..5bf95a2 --- /dev/null +++ b/vars/Fedora-28.yml @@ -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 diff --git a/vars/Fedora-29.yml b/vars/Fedora-29.yml new file mode 100644 index 0000000..5bf95a2 --- /dev/null +++ b/vars/Fedora-29.yml @@ -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