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
62f44f72a2
commit
7a11be86ee
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
- name: Create a file as the identity file and set env
|
- name: Create a file as the identity file and set env
|
||||||
shell: |
|
shell: |
|
||||||
|
mkdir /data/apps/mingdao/src
|
||||||
touch /data/apps/mingdao/installer/first
|
touch /data/apps/mingdao/installer/first
|
||||||
ln -sf /data/apps/mingdao/installer /usr/local/MDPrivateDeployment
|
ln -sf /data/apps/mingdao/installer /usr/local/MDPrivateDeployment
|
||||||
echo "vm.max_map_count = 262144" >> /etc/sysctl.conf
|
echo "vm.max_map_count = 262144" >> /etc/sysctl.conf
|
||||||
@ -45,6 +46,23 @@
|
|||||||
src: init_without_docker.sh
|
src: init_without_docker.sh
|
||||||
dest: /etc/profile.d/init_without_docker.sh
|
dest: /etc/profile.d/init_without_docker.sh
|
||||||
|
|
||||||
|
- name: Copy mingdao service
|
||||||
|
copy:
|
||||||
|
src: mingdao.service
|
||||||
|
dest: /lib/systemd/system/mingdao.service
|
||||||
|
|
||||||
|
- name: Restart and Enable mingdao service
|
||||||
|
systemd:
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
|
name: mingdao
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Copy after_up.sh to src
|
||||||
|
copy:
|
||||||
|
src: after_up.sh
|
||||||
|
dest: /data/apps/mingdao/src
|
||||||
|
|
||||||
- name: Start mingdao
|
- name: Start mingdao
|
||||||
shell: |
|
shell: |
|
||||||
source /etc/profile.d/init_without_docker.sh
|
source /etc/profile.d/init_without_docker.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user