drone/tasks/main.yml

32 lines
671 B
YAML
Raw Normal View History

2021-04-05 21:12:08 +02:00
---
# tasks file for drone
- name: Copy docker-compose.yml
ansible.builtin.template:
src: docker-compose.yml.j2
dest: docker-compose.yml
- name: Create directory data
file:
path: data/nginx
state: directory
- name: Create nginx.conf
ansible.builtin.template:
src: nginx.conf.j2
dest: data/nginx/nginx.conf
- name: Create init_letsencrypt.sh
ansible.builtin.template:
src: init_letsencrypt.sh
dest: init_letsencrypt.sh
mode: 0700
- name: Init letsencrypt and start
command: ./init_letsencrypt.sh
environment: "{{ drone_env }}"
- name: docker-compose up
command: docker-compose up -d
environment: "{{ drone_env }}"