Add check for correct role
This commit is contained in:
parent
4aff2d15b8
commit
3188ea047c
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: Check that node role is correct
|
||||
stat:
|
||||
path: "{{ home }}"
|
||||
register: role_home_folder
|
||||
failed_when: not role_home_folder.stat.exists
|
||||
|
||||
- name: Create directory for backups
|
||||
file: path={{ home }}/backups-node.toml state=directory
|
||||
|
||||
|
|
Loading…
Reference in New Issue