Task order fix; ensure share is created before we ask anything from it

This commit is contained in:
Chris Hammer 2025-02-21 18:43:14 -05:00
parent 3a5ba18687
commit b8ecbc7876

View File

@ -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