mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
22 lines
653 B
YAML
22 lines
653 B
YAML
- name: Preflight Checks | Check for secrets.yml
|
|
connection: local
|
|
become: false
|
|
stat: path=../variables/secrets.yml
|
|
register: secrets_yml
|
|
|
|
- name: Preflight Checks | Fail if secrets.yml is missing
|
|
fail:
|
|
msg: "secrets.yml is missing, please create it by copying variables/secrets.example.yml"
|
|
when: not secrets_yml.stat.exists
|
|
|
|
- name: Preflight Checks | Check for build dir
|
|
become: false
|
|
connection: local
|
|
stat: path=../build/
|
|
register: build_dir
|
|
|
|
- name: Preflight Checks | Fail if build dir is missing
|
|
fail:
|
|
msg: "build/ is missing, please create it by running `gradle :ansible:build`"
|
|
when: not build_dir.stat.exists
|