Files
Civ/ansible/tasks/preflight-checks.yml
2026-06-02 14:45:41 +01:00

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