Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find required executable systemctl in paths #102

Closed
paulcalabro opened this issue Dec 12, 2018 · 1 comment
Closed

Failed to find required executable systemctl in paths #102

paulcalabro opened this issue Dec 12, 2018 · 1 comment
Assignees

Comments

@paulcalabro
Copy link
Contributor

paulcalabro commented Dec 12, 2018

The role README files state support for Ubuntu, however, they don't state which versions of Ubuntu are supported. That being said, I've come across an issue with Ubuntu 14.04 servers where the following error message occurs:

msg: 'Failed to find required executable systemctl in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'

This is caused by the following task:

- name: Reload systemd
  systemd: daemon_reload=yes
  ignore_errors: yes
when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")

According to this reference:

https://en.wikipedia.org/wiki/Systemd

Systemd wasn't the default service manager until v15.04. You'll probably want to account for that in your conditional logic.

paulcalabro pushed a commit to paulcalabro/wazuh-ansible that referenced this issue Dec 12, 2018
paulcalabro pushed a commit to paulcalabro/wazuh-ansible that referenced this issue Dec 12, 2018
@jesuslinares jesuslinares added this to the 51th week sprint milestone Dec 17, 2018
@cadoming
Copy link
Contributor

Hi @paulcalabro,

I created the PR #114 that solved this Issue and also solve the problem for debian < 8. Thank you for your collaboration.

Regards,
Carlos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants