Skip to content

Commit

Permalink
chore: remove molecule directory check for dir not created
Browse files Browse the repository at this point in the history
  • Loading branch information
dobbi84 committed Sep 25, 2024
1 parent 91ea023 commit 8107e60
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 0 additions & 10 deletions roles/influxdb_exporter/molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 0 additions & 8 deletions roles/influxdb_exporter/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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] }}"
Expand Down

0 comments on commit 8107e60

Please sign in to comment.