ansible-role-nginx | Ansible Role - Nginx
kandi X-RAY | ansible-role-nginx Summary
kandi X-RAY | ansible-role-nginx Summary
Ansible Role - Nginx
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ansible-role-nginx
ansible-role-nginx Key Features
ansible-role-nginx Examples and Code Snippets
Community Discussions
Trending Discussions on ansible-role-nginx
QUESTION
I am trying to run Ansible playbook on WSL 2 with Ubuntu20.04. Majority of tasks work properly, however all tasks which manage the services (e.g. start nginx) fails.
Ansible code:
...ANSWER
Answered 2021-Jun-18 at 15:09There are actually two problems you are running into. First, it looks like you are specifically using the Ansible systemd module. That's not going to work, since WSL doesn't support systemd without extensive effort.
Since the WSL Ubuntu 20.04 distribution, as you've noticed, does provide a fallback to the service
command, you should be able to simply swap that out with the Ansible service module. E.g.:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ansible-role-nginx
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page