From e13d4b448efd7174b1b4c8723cbc8be845470c60 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Sun, 1 Jan 2023 21:08:22 -0800 Subject: stash --- photo.jinwei.me/config/roles/wordpress/tasks/main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 photo.jinwei.me/config/roles/wordpress/tasks/main.yaml (limited to 'photo.jinwei.me/config/roles/wordpress/tasks') diff --git a/photo.jinwei.me/config/roles/wordpress/tasks/main.yaml b/photo.jinwei.me/config/roles/wordpress/tasks/main.yaml new file mode 100644 index 0000000..3835145 --- /dev/null +++ b/photo.jinwei.me/config/roles/wordpress/tasks/main.yaml @@ -0,0 +1,16 @@ +- name: Pull wordpress Docker image + community.docker.docker_image: + name: "{{ wordpress_image }}:{{ wordpress_image_tag }}" + source: pull + +- name: render config file + template: + src: docker-compose.yaml.j2 + dest: "{{ wordpress_home }}/docker-compose.yaml" + mode: 0644 + +- name: Start wordpress container using docker-compose + community.docker.docker_compose: + project_name: wordpress + project_src: "{{ wordpress_home }}" + register: output -- cgit v1.2.3