fix: apply suggestions from ansible-lint

This commit is contained in:
Michele Cereda
2024-07-14 00:17:10 +02:00
parent 1dd0af785e
commit 71b64b3962
2 changed files with 13 additions and 3 deletions

View File

@@ -55,6 +55,11 @@
], ],
"editor.wordWrap": "off" "editor.wordWrap": "off"
}, },
"[yaml]": {
"editor.rulers": [
120
],
},
"cSpell.language": "en,en-GB", "cSpell.language": "en,en-GB",
"cSpell.words": [ "cSpell.words": [

View File

@@ -332,14 +332,19 @@
vars: vars:
out_file: /tmp/instance-id_roles.sql out_file: /tmp/instance-id_roles.sql
ansible.builtin.command: >- ansible.builtin.command: >-
pg_dumpall -h 'instance-id.c4v563ptr321.eu-west-1.rds.amazonaws.com' -p '5432' -U 'postgres' -l 'postgres' pg_dumpall
-r --no-role-passwords -f '{{ out_file }}' --host 'instance-id.c4v563ptr321.eu-west-1.rds.amazonaws.com' --port '5432'
--user 'postgres' --database 'postgres' --no-password
--roles-only --no-role-passwords
--file '{{ out_file }}'
changed_when: false changed_when: false
- name: Dump to variable for later use through 'dump_execution.stdout_lines' - name: Dump to variable for later use through 'dump_execution.stdout_lines'
environment: environment:
PGPASSWORD: "someRandomString" PGPASSWORD: "someRandomString"
ansible.builtin.command: >- ansible.builtin.command: >-
pg_dumpall -h 'instance-id.c4v563ptr321.eu-west-1.rds.amazonaws.com' -p '5432' -U 'postgres' -l 'postgres' pg_dumpall
-h 'instance-id.c4v563ptr321.eu-west-1.rds.amazonaws.com' -p '5432'
-U 'postgres' -l 'postgres' -w
-r --no-role-passwords -r --no-role-passwords
changed_when: false changed_when: false
register: dump_execution register: dump_execution