You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
728 B
YAML
30 lines
728 B
YAML
---
|
|
|
|
- name: Run install command
|
|
command: "{{ install_command }}"
|
|
args:
|
|
chdir: "{{ src }}"
|
|
creates: "{{ src }}/node_modules"
|
|
|
|
- name: Store environments required for service
|
|
template:
|
|
src: service.env
|
|
dest: "{{ service_environment_file }}"
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=
|
|
notify:
|
|
- reload systemd # required for task below, systemd must reload before the service tries to restart
|
|
- "restart {{ domain }}"
|
|
|
|
- name: Register service for node server
|
|
template:
|
|
src: node.service
|
|
dest: "{{ global_systemd_configuration_directory }}/{{ service_name }}"
|
|
owner: root
|
|
group: root
|
|
mode: "u=rw,g=r,o=r"
|
|
notify:
|
|
- reload systemd
|
|
- "restart {{ domain }}"
|