Answer the question
In order to leave comments, you need to log in
How to solve the problem could not find the requested service nginx:host when running task in ansible role?
Good afternoon, I wrote a role to run an application on the Reactjs server, all tasks are launched, except for one.
here are two tasks, the first task is successful, the second gives an error could not find the requested service nginx:host
- name: Ensure nginx is not installed
apt:
name: nginx
state: absent
- name: Ensure that Nginx is stopped
ansible.builtin.systemd:
name: nginx
state: stopped
Answer the question
In order to leave comments, you need to log in
So you demolished it with the first team, why stop something already?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question