diff --git a/.vscode/settings.json b/.vscode/settings.json index ead3cbc..5aaefbd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -55,6 +55,11 @@ ], "editor.wordWrap": "off" }, + "[yaml]": { + "editor.rulers": [ + 120 + ], + }, "cSpell.language": "en,en-GB", "cSpell.words": [ diff --git a/snippets/ansible/tasks.yml b/snippets/ansible/tasks.yml index 0201d04..6cad3e9 100644 --- a/snippets/ansible/tasks.yml +++ b/snippets/ansible/tasks.yml @@ -332,14 +332,19 @@ vars: out_file: /tmp/instance-id_roles.sql ansible.builtin.command: >- - pg_dumpall -h 'instance-id.c4v563ptr321.eu-west-1.rds.amazonaws.com' -p '5432' -U 'postgres' -l 'postgres' - -r --no-role-passwords -f '{{ out_file }}' + pg_dumpall + --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 - name: Dump to variable for later use through 'dump_execution.stdout_lines' environment: PGPASSWORD: "someRandomString" 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 changed_when: false register: dump_execution