mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-24 12:53:19 +00:00
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:
parent
9503b96854
commit
39f6702c0a
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue