Skip to content
Snippets Groups Projects
Commit bcf3579c authored by matt01671's avatar matt01671
Browse files

web working

parent 687e17d7
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,4 @@
# - role: all-dependencies
# - role: all-mount
# - role: all-docker
- role: react-build
\ No newline at end of file
- role: react-build #ONLY NEED THIS TO BUILD APP, EVERYTHING ELSE IS FOR INSTANCE
\ No newline at end of file
......@@ -38,38 +38,6 @@
global: yes
state: present
# - name: Checking folders
# tags: 'volumes'
# become: yes
# stat:
# path: "{{ item.mountpoint }}"
# register: directory_stats
# with_items:
# - "{{ volumes }}"
# - name: Create directory
# tags: 'volumes'
# become: yes
# file:
# path: "{{ item.item.mountpoint }}"
# recurse: yes
# state: directory
# when: item.stat.exists == false
# with_items:
# - "{{ directory_stats.results }}"
# - name: Mount device
# tags: 'volumes'
# become: yes
# mount:
# path: "{{ item.mountpoint }}"
# src: "{{ item.device }}"
# fstype: xfs
# state: mounted
# when: item.device is defined
# with_items:
# - "{{ volumes }}"
- name: traverse into the project directory.
become: yes
shell: cd
......@@ -216,13 +184,13 @@
msg: 'build copied'
when: build_delete_server.rc == 0
# - name: stop all the running server
# become: yes
# command: pm2 stop all
# register: stop_server
# - debug:
# msg: 'all servers stopped'
# # when: build_copy.rc == 0
- name: stop all the running server
become: yes
command: pm2 stop all
register: stop_server
- debug:
msg: 'all servers stopped'
# when: build_copy.rc == 0
- name: start the server
become: yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment