Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the the original PostgreSQL configuration file #41

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion tasks/initialise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
register: org_file

- name: postgres | remove the custom configurations from the file, if any
command: sed -i '/# Add settings for extensions here/q' "{{ postgresql_dist_confdir }}/postgresql.conf"

Check failure on line 31 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

31:81 [line-length] line too long (109 > 80 characters)

Check failure on line 31 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

31:81 [line-length] line too long (109 > 80 characters)
when:
- not org_file.stat.exists

- name: postgres | remove the Ansible managed line, if any
ansible.builtin.lineinfile:
path: "{{ postgresql_dist_confdir }}/postgresql.conf"

Check failure on line 37 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

37:11 [indentation] wrong indentation: expected 8 but found 10

Check failure on line 37 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

37:11 [indentation] wrong indentation: expected 8 but found 10
regexp: "#Ansible managed"
state: absent
when:
Expand All @@ -45,7 +45,7 @@
ansible.builtin.copy:
src: "{{ postgresql_dist_confdir }}/postgresql.conf"
dest: "{{ postgresql_dist_confdir }}/postgresql.conf.org"
remote_src: yes

Check warning on line 48 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

48:21 [truthy] truthy value should be one of [false, true]

Check warning on line 48 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

48:21 [truthy] truthy value should be one of [false, true]
check_mode: false
when:
- not org_file.stat.exists
Expand All @@ -57,7 +57,7 @@
src: "{{ postgresql_dist_confdir }}/postgresql.conf.org"
register: postgres_config_file_contents_o

- set_fact: postgres_config_file_contents={{ postgres_config_file_contents_o }}

Check failure on line 60 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

60:81 [line-length] line too long (83 > 80 characters)

Check failure on line 60 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

60:81 [line-length] line too long (83 > 80 characters)

- name: postgres | copy postgresql config file
become_user: "{{ postgresql_become_user }}"
Expand All @@ -70,7 +70,7 @@
notify:
- restart postgresql

- name: postgres | Remove org config file in check mode and file does not exist
- name: postgres | Remove the org config file if it runs in a check mode and the org file does not exist in the host

Check failure on line 73 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

73:81 [line-length] line too long (120 > 80 characters)

Check failure on line 73 in tasks/initialise.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

73:81 [line-length] line too long (120 > 80 characters)
ansible.builtin.file:
path: "{{ postgresql_dist_confdir }}/postgresql.conf.org"
state: absent
Expand Down
Loading