websoft9/apps/roles/nextcloud/tasks/pre.yml
2022-05-17 10:34:52 +08:00

5 lines
225 B
YAML

- name: Config .env for start containers
shell: |
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
sed -i "s/APP_TRUST_URL=.*/APP_TRUST_URL=$public_ip/g" {{installpath}}/{{appname}}/.env