Comments (4)
I have similar issue.
Temporary, I run "systemctl daemon-reload".
from ansible-examples.
I have similar issue, when simply running start tomcat playbook
- name: Start Tomcat
service: name=tomcat state=started enabled=yes
anyone solving this issue? appreciate it
from ansible-examples.
@noydhiet : follow below solution
- name: start tomcat
systemd:
state: restarted
daemon_reload: yes
name: tomcat
~
from ansible-examples.
Perhaps not related, but I had this error because I was running the systemd
command under the wrong user (by default is root
) and I have services running with less privileges.
As an example, I modified my Ansible commands to something like this:
name: Start Tomcat
become: yes
become_user: <username>
systemd:
- name: tomcat
- state: started
- enabled: yes
- scope: user
I'm running Ansible v2.9.4
hth
from ansible-examples.
Related Issues (20)
- hosts.example contains invalid characters in group name
- set hostname to multiple hosts using ansible HOT 2
- The rabbitmq.yml example should also demonstrate installing the correct Erlang version
- task and role dir naming conventions
- Ansible for AWS HOT 4
- ansible-lint errors in wordpress-nginx/site.yml
- ios_config is not working in Ansible
- TASK [mongod : Start the mongodb service] ERROR HOT 1
- checking OSR(Operating system files) permission
- Registry settings required on all servers
- Test
- Add "best practices" example of separate staging/production inventories HOT 3
- SRE-Ansible To Install ELK Stack
- Inclusive language
- Wrong file name HOT 1
- Input parameters for the example playbooks are undocumented HOT 1
- Create a shell script that runs an ansible ad hac to create yum repository HOT 1
- no example of import_tasks or strategy HOT 1
- Ansible
- copy files from linux server to file shared on windows server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-examples.