mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-28 03:05:04 +00:00
25 lines
No EOL
591 B
YAML
25 lines
No EOL
591 B
YAML
---
|
|
- name: Prepare
|
|
hosts: all
|
|
tasks:
|
|
- name: Install docker python module
|
|
pip:
|
|
name: docker
|
|
|
|
- name: Create a dummy gitea config directory
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
recurse: yes
|
|
with_items:
|
|
- "{{ gitea_data_directory }}/gitea/gitea/conf"
|
|
|
|
- name: Create a dummy gitea config file
|
|
file:
|
|
path: "{{ gitea_data_directory }}/gitea/gitea/conf/app.ini"
|
|
state: touch
|
|
|
|
handlers:
|
|
- name: restart gitea
|
|
command: echo "this task will restart gitea"
|
|
listen: "restart gitea" |