Update main.yml

This commit is contained in:
Darren 2023-03-01 16:31:47 +08:00 committed by GitHub
parent 62f44f72a2
commit 7a11be86ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -44,6 +45,23 @@
template: template:
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: |