mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
Update main.yml
This commit is contained in:
parent
8c8df076be
commit
d756d7c2c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user