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
|
- name: Check disk space on ReaR Backup filesystem for NFS servers
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
@ -21,14 +29,6 @@
|
|||||||
when:
|
when:
|
||||||
- client_ips is not defined
|
- 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
|
- name: Add remote hosts to /etc/exports
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/exports
|
path: /etc/exports
|
||||||
|
Loading…
x
Reference in New Issue
Block a user