mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update main.yml
This commit is contained in:
parent
344a64f10e
commit
e307b57569
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user