--- # domain: "example.com" service_name: "{{ domain }}.service" # TODO Socket # bind_port # repo # system_user: "nodejs" user_directory: "{{ global_webservers_directory }}/{{ domain }}" src: "{{ user_directory }}/server" database_user: "{{ system_user | regex_replace('[^a-zA-Z]', '_') }}" # database_pass from mysql/database # database_name from mysql/database environment_vars: {} install_command: "sudo -u {{ system_user | quote }} sh -c 'npm i && npm audit fix'" reload_command: "{{ install_command }} && systemctl restart {{ service_name | quote }}"