ver 4
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
- name: Configure postgresql.conf with template
|
||||
- name: Configure postgresql.conf
|
||||
template:
|
||||
src: postgresql.conf.j2
|
||||
dest: /var/lib/pgsql/data/postgresql.conf
|
||||
@ -7,7 +7,7 @@
|
||||
mode: '0644'
|
||||
notify: Restart PostgreSQL
|
||||
|
||||
- name: Configure pg_hba.conf with template
|
||||
- name: Configure pg_hba.conf
|
||||
template:
|
||||
src: pg_hba.conf.j2
|
||||
dest: /var/lib/pgsql/data/pg_hba.conf
|
||||
|
@ -5,7 +5,7 @@
|
||||
encoding: UTF8
|
||||
state: present
|
||||
|
||||
- name: Create contacts table in PostgreSQL
|
||||
- name: Create contacts table
|
||||
community.postgresql.postgresql_query:
|
||||
db: '{{ postgres_db }}'
|
||||
query: |
|
||||
|
@ -1,4 +1,4 @@
|
||||
- name: Insert data into PostgreSQL database idempotently
|
||||
- name: Insert data into PostgreSQL database
|
||||
community.postgresql.postgresql_query:
|
||||
db: '{{ postgres_db }}'
|
||||
query: |
|
||||
|
@ -4,7 +4,9 @@
|
||||
permanent: true
|
||||
state: enabled
|
||||
become: true
|
||||
|
||||
- name: Reload firewall using command
|
||||
command: firewall-cmd --reload
|
||||
|
||||
- name: Reload firewalld
|
||||
systemd:
|
||||
name: firewalld
|
||||
state: reloaded
|
||||
become: true
|
||||
|
Reference in New Issue
Block a user