Update main.yml

This commit is contained in:
qiaofeng1227 2022-11-18 11:26:52 +08:00 committed by GitHub
parent 8c8df076be
commit d756d7c2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,19 +3,19 @@
vars:
app: "wordpress"
- name: Install cp-cli
- block:
- name: Copy wp-cli
copy:
src: wp-cli.phar
dest: wp-cli.phar
- name: Add Install wp-cli for init
shell: |
echo "docker cp wp-cli.phar wordpress:/tmp" >> /data/apps/{{appname}}/src/after_up.sh
echo "docker exec -it wordpress chmod +x /tmp/wp-cli.phar" >> /data/apps/{{appname}}/src/after_up.sh
echo "docker exec -it wordpress mv /tmp/wp-cli.phar /usr/local/bin/wp" >> /data/apps/{{appname}}/src/after_up.sh
- block:
- name: Copy wp-cli
copy:
src: wp-cli.phar
dest: wp-cli.phar
- name: Add Install wp-cli for init
shell: |
echo "docker cp wp-cli.phar wordpress:/tmp" >> /data/apps/{{appname}}/src/after_up.sh
echo "docker exec -it wordpress chmod +x /tmp/wp-cli.phar" >> /data/apps/{{appname}}/src/after_up.sh
echo "docker exec -it wordpress mv /tmp/wp-cli.phar /usr/local/bin/wp" >> /data/apps/{{appname}}/src/after_up.sh
when: wordpress_solution != "" and wordpress_solution != "multisite"
- name: Set the theme solution
- block:
- name: Download {{wordpress_solution}} theme to host machine