Compare commits
5 Commits
60c74ca221
...
bbe07d297c
Author | SHA1 | Date |
---|---|---|
Tom Misilo | bbe07d297c | |
Jeff Geerling | 156d056c8f | |
Thomas Misilo | a13293f262 | |
Thomas Misilo | 92e7895d7c | |
jeanmonet | e6811b5ca7 |
|
@ -19,12 +19,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'geerlingguy.postgresql'
|
||||
|
||||
- name: Set up Python 3.
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
@ -52,12 +52,12 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'geerlingguy.postgresql'
|
||||
|
||||
- name: Set up Python 3.
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'geerlingguy.postgresql'
|
||||
|
||||
- name: Set up Python 3.
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
- name: example
|
||||
postgresql_users:
|
||||
- name: jdoe
|
||||
postgresql_data_dir: /psqldata
|
||||
|
||||
pre_tasks:
|
||||
# The Fedora 30+ container images have only C.UTF-8 installed
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
role_name_check: 1
|
||||
dependency:
|
||||
name: galaxy
|
||||
options:
|
||||
ignore-errors: true
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: instance
|
||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
---
|
||||
- name: Configure global settings.
|
||||
# `data_directory` in postgresql.conf set to `postgresql_data_dir` variable
|
||||
# Can be overridden in next task if `data_directory` parameter is also set
|
||||
# via `postgresql_global_config_options` var
|
||||
- name: Configure data dir in postgresql.conf.
|
||||
lineinfile:
|
||||
dest: "{{ postgresql_config_path }}/postgresql.conf"
|
||||
regexp: "^#?{{ item.option }}.+$"
|
||||
regexp: "^#?\\s*data_directory\\s*=.+$"
|
||||
line: "data_directory = '{{ postgresql_data_dir }}'"
|
||||
mode: 0644
|
||||
notify: restart postgresql
|
||||
|
||||
- name: Configure global settings (postgresql.conf).
|
||||
lineinfile:
|
||||
dest: "{{ postgresql_config_path }}/postgresql.conf"
|
||||
regexp: "^#?\\s*{{ item.option }}\\s*=.+$"
|
||||
line: "{{ item.option }} = '{{ item.value }}'"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
mode: 0644
|
||||
|
|
Loading…
Reference in New Issue