style: make ansible-lint happy

This commit is contained in:
VC
2024-07-05 11:53:44 +02:00
parent 99cb02e92d
commit 4bbb789c77
13 changed files with 77 additions and 52 deletions

View File

@@ -15,7 +15,7 @@
- name: Populate postgresql directory
ansible.builtin.command:
cmd: "/usr/lib/postgresql/{{ pg_version }}/bin/initdb -E UTF-8 /srv/postgresql/"
cmd: "/usr/lib/postgresql/{{ postgres_pg_version }}/bin/initdb -E UTF-8 /srv/postgresql/"
creates: /srv/postgresql/PG_VERSION
become: true
become_user: postgres
@@ -24,14 +24,14 @@
- name: Put hba configuration files
ansible.builtin.copy:
src: "files/pg_hba.conf"
dest: "/etc/postgresql/{{ pg_version }}/main/pg_hba.conf"
dest: "/etc/postgresql/{{ postgres_pg_version }}/main/pg_hba.conf"
mode: "0640"
notify: Restart postgres
- name: Put main configuration files
ansible.builtin.template:
src: "postgresql.conf.j2"
dest: "/etc/postgresql/{{ pg_version }}/main/postgresql.conf"
dest: "/etc/postgresql/{{ postgres_pg_version }}/main/postgresql.conf"
mode: "0644"
- name: Create backup dir