GithubHelp home page GithubHelp logo

Comments (3)

bakhti avatar bakhti commented on July 20, 2024

Hi,

sudo is enabled for this task

elk_common_packages sudo: yes

and yet you are getting permissions related error:

stderr: /etc/openntpd/ntpd.conf: Permission denied

The error is not related to this playbook. Try to purge openntpd package.

from ansible-elk.

fernandeze avatar fernandeze commented on July 20, 2024

Also didnt work for me

TASK: [bakhti.elk | Install common apt packages] ******************************
<127.0.0.1> REMOTE_MODULE apt pkg=openntpd,python-apt,python-pycurl,python-pip,supervisor,monit,git-core state=latest
failed: [default] => (item=openntpd,python-apt,python-pycurl,python-pip,supervisor,monit,git-core) => {"failed": true, "item": "openntpd,python-apt,python-pycurl,python-pip,supervisor,monit,git-core"}
stderr: E: Sub-process /usr/bin/dpkg returned an error code (1)

stdout: Reading package lists...
Building dependency tree...
Reading state information...
openntpd is already the newest version.
The following package was automatically installed and is no longer required:
libopts25
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openntpd (3.9p1+debian-9) ...
Starting openntpd: /etc/openntpd/ntpd.conf: Permission denied
invoke-rc.d: initscript openntpd, action "start" failed.
dpkg: error processing openntpd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
openntpd

msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'openntpd'' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)

FATAL: all hosts have already failed -- aborting

default : ok=2 changed=0 unreachable=0 failed=1

from ansible-elk.

jcoetsie avatar jcoetsie commented on July 20, 2024

th problem is that the openntpd package in being installed. When you already have the nap package, it conflicts.

You need to remove the ntp package before and make sure its config files are purged

from ansible-elk.

Related Issues (13)

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.