deploy_gitea_runner/tasks/prerequisites.yml

28 lines
748 B
YAML
Raw Normal View History

2023-07-27 17:12:18 +00:00
---
# task/prerequisites file for deploy_gitea_runner
- name: "Create gitea_actions directory"
ansible.builtin.file:
path: "{{ deploy_gitea_runner_directory }}"
state: directory
owner: root
group: root
mode: '0755'
- name: "Create gitea_actions/data directory"
ansible.builtin.file:
path: "{{ deploy_gitea_runner_directory }}/data"
state: directory
owner: root
group: root
mode: '0755'
- name: "Create gitea_actions/cache directory"
ansible.builtin.file:
path: "{{ deploy_gitea_runner_directory }}/cache"
state: directory
owner: root
group: root
mode: '0755'
when: deploy_gitea_runner_config['cache']['enabled'] is defined
and deploy_gitea_runner_config['cache']['enabled']