fix: node_exporter - Add test for ProtectHome

Add a tmpfs mount to the node_exporter testing to make sure ProtectHome
is changed.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ 2023-05-10 10:16:50 +02:00
parent 9503b96854
commit 39f6702c0a
No known key found for this signature in database
GPG key ID: C646B23C9E3245F1

View file

@ -76,3 +76,18 @@
dest: "{{ node_exporter_tls_server_config.cert_file }}"
- src: "/tmp/tls.key"
dest: "{{ node_exporter_tls_server_config.key_file }}"
- name: Create test mount directory
ansible.builtin.file:
path: /home/test
state: directory
owner: root
group: root
mode: 0755
- name: Mount test filesystem
ansible.posix.mount:
path: /home/test
src: tmpfs
fstype: tmpfs
state: mounted