mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
---
|
|
- name: "include task receive certbot certificate"
|
|
include_tasks: recieve-certbot-certificate.yml
|
|
vars:
|
|
domain: "{{ item }}"
|
|
loop: "{{ wordpress_domains }}"
|
|
loop_control:
|
|
loop_var: item
|
|
|
|
- name: "include task create wordpress nginx"
|
|
include_tasks: create-wordpress-nginx.yml
|
|
vars:
|
|
domain: "{{ item }}"
|
|
loop: "{{ wordpress_domains }}"
|
|
loop_control:
|
|
loop_var: item
|
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
|
file:
|
|
path: "{{docker_compose_instance_directory}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
|
|
template:
|
|
src: upload.ini.j2
|
|
dest: "{{docker_compose_instance_directory}}upload.ini"
|
|
notify:
|
|
- recreate wordpress
|
|
- rebuild wordpress container
|
|
|
|
- name: "Transfering Dockerfile to {{docker_compose_instance_directory}}"
|
|
copy:
|
|
src: Dockerfile
|
|
dest: "{{docker_compose_instance_directory}}Dockerfile"
|
|
notify:
|
|
- recreate wordpress
|
|
- rebuild wordpress container
|
|
|
|
- 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
|