mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-30 10:56:51 +00:00
added Role win_study
This commit is contained in:
1 parent
a02177f762
commit
4cea3b4c82
6 files changed
+112
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Check status of project
|
||||
tags: check_project
|
||||
block:
|
||||
- name: Check if study folder already exists
|
||||
win_stat:
|
||||
path: "{{ study_folder }}"
|
||||
register: folder
|
||||
failed_when: folder.stat.exists
|
||||
|
||||
rescue:
|
||||
- name: Force fail when study folder already present
|
||||
fail:
|
||||
msg="This study folder is already present"
|
||||
|
||||
|
||||
Reference in new issue
Block a user