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

15 lines
457 B
YAML

---
- name: rebuild wordpress container
command:
cmd: docker build --no-cache -t custom_wordpress .
chdir: "{{docker_compose_instance_directory}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600
- name: recreate wordpress
command:
cmd: docker-compose -p wordpress up -d --force-recreate
chdir: "{{docker_compose_instance_directory}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600