Git Product home page Git Product logo

Comments (7)

soupdiver avatar soupdiver commented on June 12, 2024

Are you speaking of the latest version provided by Ubuntu or monit at all?

from monit.

onsails avatar onsails commented on June 12, 2024

I am speaking about latest version provuded by Ubuntu: 5.6

from monit.

onsails avatar onsails commented on June 12, 2024

If I set sudo: yes for the whole playbook, everything works fine, but if I specify sudo just for role:

- hosts: appservers
  roles:
    - role: ANXS.monit
      sudo: yes

the error appears.

from monit.

soupdiver avatar soupdiver commented on June 12, 2024

I started a VM based on the provided Vagrantfile and monit starts without any problem.
Also the file seems to have the correct permissions:

ls -la /etc/monit/
total 28
drwxr-xr-x  5 root root 4096 Apr 16 01:41 .
drwxr-xr-x 94 root root 4096 Apr 16 01:41 ..
drwxr-xr-x  2 root root 4096 Apr 16 01:41 conf.d
-rw-------  1 root root 6402 Apr 16 01:41 monitrc
drwxr-xr-x  2 root root 4096 Apr 16 01:41 monitrc.d
drwxr-xr-x  2 root root 4096 Apr 16 01:41 templates

Did you upgraded from a previous version of monit?

from monit.

onsails avatar onsails commented on June 12, 2024

You have ansible.sudo = true set to true which is equivalent to setting sudo: yes for the whole playbook with which my case works too. The problem appears if there is no sudo: yes for the whole playbook but it is set for the role only.

from monit.

otakup0pe avatar otakup0pe commented on June 12, 2024

I'm not sure that sudo is expected to work that way with roles. I don't believe this is actually a bug with the ANXS.monit role.

from monit.

soupdiver avatar soupdiver commented on June 12, 2024

Houh I'm not sure if you can set sudo: yes for a specific role.
I think it should be set on a task or playbook level

from monit.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.