mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
fix: apply suggestions from ansible-lint
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -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": [
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user