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

Commit 89c8fba

Browse files
Merge pull request #3 from stone-payments/feat/hotbackup
Ignore error when validade backup directories
2 parents cc4c509 + af7d52b commit 89c8fba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/backup/pbm_configure.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
group: "{{ mongodb_user }}"
66
state: present
77

8+
- name: "Add user {{ mongodb_user }} to group pbm"
9+
user:
10+
name: "{{ mongodb_user }}"
11+
group: pbm
12+
state: present
13+
814
- name: Ensure backup directory
915
file:
1016
path: "{{ mongodb_backup_path }}"
@@ -13,6 +19,7 @@
1319
group: pbm
1420
mode: 0775
1521
recurse: true
22+
ignore_errors: true
1623
when: not ansible_check_mode
1724

1825
- name: Ensure hot backup directory
@@ -23,6 +30,7 @@
2330
group: "{{ mongodb_user }}"
2431
mode: 0775
2532
recurse: true
33+
ignore_errors: true
2634
when: not ansible_check_mode
2735

2836
- name: Create file pbm-agent

0 commit comments

Comments
 (0)