ansible-node-exporter icon indicating copy to clipboard operation
ansible-node-exporter copied to clipboard

Fix OracleLinux dependecies

Open sgargel opened this issue 5 years ago • 4 comments

Also OracleLinux needs dependecies like centos or redhat.

sgargel avatar Nov 04 '20 15:11 sgargel

Is the travis error related to my pr? ImportError: cannot import name 'add_all_plugin_dirs' from 'ansible.plugins.loader' (/home/travis/build/cloudalchemy/ansible-node-exporter/.tox/py37-ansible27/lib/python3.7/site-packages/ansible/plugins/loader.py)

sgargel avatar Nov 20 '20 15:11 sgargel

I have also included rocky linux.

diff --git a/tasks/selinux.yml b/tasks/selinux.yml
index e5efae5..76e9660 100644
--- a/tasks/selinux.yml
+++ b/tasks/selinux.yml
@@ -11,7 +11,9 @@
   delay: 2
   when:
     - (ansible_distribution | lower == "redhat") or
-      (ansible_distribution | lower == "centos")
+      (ansible_distribution | lower == "centos") or
+      (ansible_distribution | lower == "oraclelinux") or
+      (ansible_distribution | lower == "rocky")
 
 - name: Install selinux python packages [Fedora]
   package:

privx-de avatar Oct 19 '21 18:10 privx-de

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 17 '22 07:04 stale[bot]

@sgargel @privx-de

As this issue has been addressed in #261 , could we close this PR?

zhan9san avatar Jul 01 '22 07:07 zhan9san

This role has been deprecated in favor of a the prometheus-community/ansible collection.

SuperQ avatar Mar 06 '23 15:03 SuperQ