Hi All
I am trying to user a systemd service with ansible. Basically I am trying
to restart jboss with a jboss user. I have allowed this user to stop/start/
using sudo without a password in the sudoers file and it works
sudo /usr/bin/systemctl stop jboss
. When I try with ansible I get Access denied
---
- hosts: isa
tasks:
- name: make sure jboss is running
service: name=jboss state=running
So I tried running the playbook with the become option
---
- hosts: isa
tasks:
- name: make sure jboss is running
service: name=jboss state=running
become: yes
Now I get this message
=> Missing become password
As I mentioned the sudoers file do not require a password for this command
so How to I get ansible run this?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/fb57ce8b-cf53-4aa8-a3e2-1aa4650c1584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.