Add check for correct role

This commit is contained in:
phahulin 2018-02-05 23:52:52 +03:00
parent 4aff2d15b8
commit 3188ea047c
1 changed files with 6 additions and 0 deletions

View File

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