mirror of
https://github.com/geerlingguy/ansible-role-postgresql.git
synced 2025-03-03 16:17:10 -05:00
Fixes #30: Fix deprecated use of include, bump minimum Ansible version to 2.4.
This commit is contained in:
parent
53d1245169
commit
5cb7832ced
2 changed files with 8 additions and 11 deletions
|
@ -6,7 +6,7 @@ galaxy_info:
|
|||
description: PostgreSQL server for Linux.
|
||||
company: "Midwestern Mac, LLC"
|
||||
license: "license (BSD, MIT)"
|
||||
min_ansible_version: 2.0
|
||||
min_ansible_version: 2.4
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
|
|
|
@ -1,19 +1,16 @@
|
|||
---
|
||||
# Variable configuration.
|
||||
- include: variables.yml
|
||||
static: no
|
||||
- include_tasks: variables.yml
|
||||
|
||||
# Setup/install tasks.
|
||||
- include: setup-RedHat.yml
|
||||
- include_tasks: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
static: no
|
||||
|
||||
- include: setup-Debian.yml
|
||||
- include_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
static: no
|
||||
|
||||
- include: initialize.yml
|
||||
- include: configure.yml
|
||||
- include_tasks: initialize.yml
|
||||
- include_tasks: configure.yml
|
||||
|
||||
- name: Ensure PostgreSQL is started and enabled on boot.
|
||||
service:
|
||||
|
@ -22,5 +19,5 @@
|
|||
enabled: yes
|
||||
|
||||
# Configure PostgreSQL.
|
||||
- include: databases.yml
|
||||
- include: users.yml
|
||||
- import_tasks: databases.yml
|
||||
- import_tasks: users.yml
|
||||
|
|
Loading…
Add table
Reference in a new issue