aboutsummaryrefslogtreecommitdiffhomepage
path: root/molecule/features/verify.yml
diff options
context:
space:
mode:
authorGaƫtan <36162164+gaetanfl@users.noreply.github.com>2021-11-03 10:33:24 +0100
committerGitHub <noreply@github.com>2021-11-03 10:33:24 +0100
commit9f55450f44645d9479bdbb2b9209c566f26e4d10 (patch)
tree80131ed79f1b6233db736dfc223d7dfa2de73207 /molecule/features/verify.yml
parentd533407af1f4e5d55bb778fabf4b9b0d9bb1ed56 (diff)
parentffadb834d15c8bff62cb4133d5b5156e5dfef55b (diff)
downloadansible-netdata_straight-9f55450f44645d9479bdbb2b9209c566f26e4d10.tar.gz
ansible-netdata_straight-9f55450f44645d9479bdbb2b9209c566f26e4d10.tar.zst
ansible-netdata_straight-9f55450f44645d9479bdbb2b9209c566f26e4d10.zip
Merge pull request #2 from fretlink/add_config
Add configuration for sensors
Diffstat (limited to 'molecule/features/verify.yml')
-rw-r--r--molecule/features/verify.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/molecule/features/verify.yml b/molecule/features/verify.yml
new file mode 100644
index 0000000..9f64471
--- /dev/null
+++ b/molecule/features/verify.yml
@@ -0,0 +1,40 @@
1---
2# This is an example playbook to execute Ansible tests.
3- name: Verify
4 hosts: all
5 gather_facts: false
6 tasks:
7 - name: Get netdata groups
8 command: id -Gzn
9 register: netdata_groups_st
10 become: true
11 become_user: netdata
12 changed_when: false
13
14 - name: Check file access
15 stat:
16 path: /etc/fakefile.conf
17 become: yes
18 become_user: netdata
19 register: netdata_stat_st
20
21 - name: Check pip package
22 command: test-pip-install
23 become: yes
24 become_user: netdata
25 changed_when: false
26
27 - name: Check apt package
28 command: rot13
29 args:
30 stdin: test
31 changed_when: false
32
33 - name: Asserts config was applied
34 assert:
35 that:
36 - "'fakegroup' in group_array"
37 - netdata_can_read
38 vars:
39 group_array: "{{ netdata_groups_st.stdout.split('\0') | reject('eq','') | list }}"
40 netdata_can_read: "{{ netdata_stat_st.stat.readable }}"