Quick fix; task shuffle back
This commit is contained in:
@ -1,4 +1,12 @@
|
|||||||
---
|
---
|
||||||
|
- name: Ensure share directory exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ rear_vars_nfs_base }}/{{ rear_backup_workflow }}"
|
||||||
|
state: directory
|
||||||
|
mode: "0777"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
|
||||||
# We should use Ansible to determine disk space, not command/shell (refactor):
|
# We should use Ansible to determine disk space, not command/shell (refactor):
|
||||||
- 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: |
|
||||||
@ -18,14 +26,6 @@
|
|||||||
when:
|
when:
|
||||||
- client_ips is not defined
|
- client_ips is not defined
|
||||||
|
|
||||||
- name: Ensure share directory exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ rear_vars_nfs_base }}/{{ rear_backup_workflow }}"
|
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user