This is a known issue, see: https://github.com/ansible/ansible/issues/5712
Hope it helps. Le vendredi 29 janvier 2016 14:55:02 UTC+1, Isa Baboo a écrit : > > 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/8238e266-6f89-43f2-b0c4-0fe438971103%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
