Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit b22db1d

Browse files
Merge pull request #5 from stone-payments/feat/disable-logs
Disable logs for pbm configure tasks to not print password
2 parents 4ffe1d5 + ed105f6 commit b22db1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/backup/pbm_configure.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@
5050

5151
- name: PBM Config PBM_MONGODB_URI
5252
command: pbm config --file /mongodb/pbm_config.yml --mongodb-uri "mongodb://{{ mongodb_backup_user_name }}:{{ mongodb_backup_user_password }}@{{ inventory_hostname }}:{{ mongodb_net_port|default('27017') }}/admin?replicaSet={{ mongodb_replication_replset }}"
53+
no_log: true
5354

5455
- name: PBM Enable Point-in-Time Recovery
5556
command: pbm config --set pitr.enabled=true --mongodb-uri "mongodb://{{ mongodb_backup_user_name }}:{{ mongodb_backup_user_password }}@{{ inventory_hostname }}:{{ mongodb_net_port|default('27017') }}/admin?replicaSet={{ mongodb_replication_replset }}"
57+
no_log: true
5658
when:
5759
- mongodb_backup_pbm_pitr_enable|bool
5860

@@ -64,4 +66,5 @@
6466
- name: Add PBM_MONGODB_URI to bash profile
6567
lineinfile:
6668
path: /root/.bashrc
67-
line: 'export PBM_MONGODB_URI="mongodb://{{ mongodb_backup_user_name }}:{{ mongodb_backup_user_password }}@{{ inventory_hostname }}:{{ mongodb_net_port|default("27017") }}/admin?replicaSet={{ mongodb_replication_replset }}"'
69+
line: 'export PBM_MONGODB_URI="mongodb://{{ mongodb_backup_user_name }}:{{ mongodb_backup_user_password }}@{{ inventory_hostname }}:{{ mongodb_net_port|default("27017") }}/admin?replicaSet={{ mongodb_replication_replset }}"'
70+
no_log: true

0 commit comments

Comments
 (0)