Skip to content

Commit f66e1ea

Browse files
committed
Fix: user fqcn of builtin modules
Signed-off-by: Mahdi Fooladgar (professormahi) <professormahi_f@yahoo.com>
1 parent 6bce1f9 commit f66e1ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roles/postgres_hardening/tasks/hardening.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Check Compatibility ###########
2727
#################################
2828
- name: Print the OS
29-
debug:
29+
ansible.builtin.debug:
3030
var: ansible_facts.os_family
3131

3232
- name: Only compatible OS versions
@@ -38,7 +38,7 @@
3838
# POSTGRES-01 ###################
3939
#################################
4040
- name: Check postgres service status
41-
service:
41+
ansible.builtin.service:
4242
name: "{{ postgres_daemon }}"
4343
state: started
4444

@@ -52,15 +52,15 @@
5252
check_mode: false
5353

5454
- name: Print the postgres version
55-
debug:
55+
ansible.builtin.debug:
5656
var: postgres_version_raw
5757

5858
- name: Parse postgres-version
5959
ansible.builtin.set_fact:
6060
postgres_version: "{{ postgres_version_raw.stdout | regex_search('psql\\s\\(PostgreSQL\\)\\s(12|13|14|15|16).*', '\\1') | first }}"
6161

6262
- name: Print the postgres version
63-
debug:
63+
ansible.builtin.debug:
6464
var: postgres_version
6565

6666
- name: Only compatible postgres versions allowed

0 commit comments

Comments
 (0)