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

Commit e25f12f

Browse files
Fix tasks to add and remove PBM_MONGODB_URI to bashrc
1 parent 5db73df commit e25f12f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tasks/backup/pbm_configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
name: "pbm-agent"
6464
state: started
6565

66-
- name: Add PBM_MONGODB_URI to bash profile
66+
- name: Add PBM_MONGODB_URI to bashrc
6767
lineinfile:
6868
path: /root/.bashrc
6969
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 }}"'

tasks/backup/pbm_remove.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
state: "absent"
4444
path: "/etc/sysconfig/pbm-agent"
4545

46-
- name: Remove PBM_MONGODB_URI to bash profile
46+
- name: Remove PBM_MONGODB_URI to bashrc
4747
lineinfile:
48-
path: /root/.bash_profile
49-
line: 'export PBM_MONGODB_URI="mongodb://{{ mongodb_pbm_user_name }}:{{ mongodb_pbm_user_name_password }}@{{ inventory_hostname }}:{{ mongodb_net_port|default("27017") }}/admin?replicaSet={{ mongodb_replication_replset }}"'
48+
path: /root/.bashrc
5049
state: absent
50+
no_log: true

0 commit comments

Comments
 (0)