diff --git a/roles/influxdb_exporter/molecule/alternative/tests/test_alternative.py b/roles/influxdb_exporter/molecule/alternative/tests/test_alternative.py index 1077badc2..058d8b619 100644 --- a/roles/influxdb_exporter/molecule/alternative/tests/test_alternative.py +++ b/roles/influxdb_exporter/molecule/alternative/tests/test_alternative.py @@ -9,15 +9,6 @@ os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') -def test_directories(host): - dirs = [ - "/var/lib/influxdb_exporter" - ] - for dir in dirs: - d = host.file(dir) - assert not d.exists - - def test_service(host): s = host.service("influxdb_exporter") try: diff --git a/roles/influxdb_exporter/molecule/default/tests/test_default.py b/roles/influxdb_exporter/molecule/default/tests/test_default.py index 18022851c..822979c6c 100644 --- a/roles/influxdb_exporter/molecule/default/tests/test_default.py +++ b/roles/influxdb_exporter/molecule/default/tests/test_default.py @@ -8,16 +8,6 @@ os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') -def test_directories(host): - dirs = [ - "/var/lib/influxdb_exporter" - ] - for dir in dirs: - d = host.file(dir) - assert d.is_directory - assert d.exists - - def test_files(host): files = [ "/etc/systemd/system/influxdb_exporter.service", diff --git a/roles/influxdb_exporter/tasks/configure.yml b/roles/influxdb_exporter/tasks/configure.yml index 2ca839b4d..a6eb22674 100644 --- a/roles/influxdb_exporter/tasks/configure.yml +++ b/roles/influxdb_exporter/tasks/configure.yml @@ -8,14 +8,6 @@ mode: 0644 notify: restart influxdb_exporter -- name: Create influxdb_exporter config directory - ansible.builtin.file: - path: "/etc/influxdb_exporter" - state: directory - owner: root - group: root - mode: u+rwX,g+rwX,o=rX - - name: Allow influxdb_exporter port in SELinux on RedHat OS family community.general.seport: ports: "{{ influxdb_exporter_web_listen_address.split(':')[-1] }}"