Мне нужно запустить ecosystem.config.js, используя ansible.Каким будет путь.при попытке установить скрипт запуска выдает ошибку
- name: Installing startup script
command: "pm2 startup -u {{ pm2_user }} --hp {{ pm2_user_home.stdout }}"
fatal: [localhost]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: 'pm2_user' is undefined\n\nThe error appears to have been in '/var/honmanagement/ansible/nodejs.yml': line 58, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n state: latest\n - name: Looking up user home\n ^ here\n"
}
Должен ли я сначала создать pm2_user?какой будет способ запуска ecosystem.config.js