Update main.yml

This commit is contained in:
Darren 2022-07-12 13:02:03 +08:00 committed by GitHub
parent 344a64f10e
commit e307b57569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,9 +66,6 @@
- apps
failed_when: False
- name: Create /data/wwwroot softlink to /data/apps
shell: ln -sf /data/apps /data/wwwroot
- block:
- name: set a regular hostname, remove "."
shell: get_hostname=$(hostname);echo ${get_hostname%%.*}
@ -110,3 +107,15 @@
- name: Check Docker Version
shell: sudo sh -c "docker -v 1>> /data/logs/install_version.txt"
# Softlink
- name: Create a symbolic link
file:
src: '{{item.src}}'
dest: '{{item.dest}}'
state: link
force: yes
with_items:
- {src: /data/wwwroot/,dest: /data/apps}
- {src: /var/lib/docker/,dest: /data/docker}