Task order fix; ensure share is created before we ask anything from it
This commit is contained in:
parent
3a5ba18687
commit
b8ecbc7876
@ -1,4 +1,12 @@
|
||||
---
|
||||
- name: Ensure share directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ share }}"
|
||||
state: directory
|
||||
mode: "0777"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Check disk space on ReaR Backup filesystem for NFS servers
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
@ -21,14 +29,6 @@
|
||||
when:
|
||||
- client_ips is not defined
|
||||
|
||||
- name: Ensure share directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ share }}"
|
||||
state: directory
|
||||
mode: "0777"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add remote hosts to /etc/exports
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/exports
|
||||
|
Loading…
x
Reference in New Issue
Block a user