computer-playbook/roles/docker-wordpress/tasks/main.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
---
2023-12-06 14:40:18 +01:00
- name: "include task receive certbot certificate"
include_tasks: recieve-certbot-certificate.yml
vars:
domain: "{{ item }}"
loop: "{{ wordpress_domains }}"
loop_control:
loop_var: item
2020-12-24 14:27:31 +01:00
2023-12-06 14:40:18 +01:00
- name: "include task create wordpress nginx"
include_tasks: create-wordpress-nginx.yml
2020-12-24 14:27:31 +01:00
vars:
2023-12-06 14:40:18 +01:00
domain: "{{ item }}"
loop: "{{ wordpress_domains }}"
loop_control:
loop_var: item
2020-12-24 14:27:31 +01:00
2023-12-05 18:45:26 +01:00
- name: "create {{docker_compose_instance_directory}}"
file:
2023-12-05 18:45:26 +01:00
path: "{{docker_compose_instance_directory}}"
state: directory
mode: 0755
2023-12-05 18:45:26 +01:00
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
2023-09-11 18:17:10 +02:00
template:
src: upload.ini.j2
2023-12-05 18:45:26 +01:00
dest: "{{docker_compose_instance_directory}}upload.ini"
2023-09-11 18:17:10 +02:00
notify:
- recreate wordpress
- rebuild wordpress container
2023-12-05 18:45:26 +01:00
- name: "Transfering Dockerfile to {{docker_compose_instance_directory}}"
2023-09-11 18:17:10 +02:00
copy:
src: Dockerfile
2023-12-05 18:45:26 +01:00
dest: "{{docker_compose_instance_directory}}Dockerfile"
2023-09-11 18:17:10 +02:00
notify:
- recreate wordpress
- rebuild wordpress container
2023-12-05 18:45:26 +01:00
- name: "add docker-compose.yml to {{docker_compose_instance_directory}}"
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
notify: recreate wordpress