mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 19:48:47 +00:00
Merge pull request #633 from anarion80/fix_drone_ci_tests
Fix drone ci tests
This commit is contained in:
commit
931cd46437
3 changed files with 31 additions and 0 deletions
8
roles/drone-ci/handlers/main.yml
Normal file
8
roles/drone-ci/handlers/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Restart gitea
|
||||
community.docker.docker_container:
|
||||
name: gitea
|
||||
image: gitea/gitea:latest
|
||||
state: started
|
||||
restart: true
|
||||
listen: "restart gitea"
|
|
@ -8,3 +8,6 @@ provisioner:
|
|||
drone_ci_gitea_client_secret: asdfasd12341234
|
||||
gitea_port_http: 3001
|
||||
ansible_nas_hostname: ansible-nas-ci
|
||||
gitea_data_directory: "/tmp"
|
||||
playbooks:
|
||||
prepare: prepare.yml
|
||||
|
|
20
roles/drone-ci/molecule/default/prepare.yml
Normal file
20
roles/drone-ci/molecule/default/prepare.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- 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
|
Loading…
Reference in a new issue