2 # This is an example playbook to execute Ansible tests.
7 - name: Get netdata groups
9 register: netdata_groups_st
14 - name: Check file access
16 path: /etc/fakefile.conf
19 register: netdata_stat_st
21 - name: Check pip package
22 command: test-pip-install
27 - name: Check apt package
33 - name: Asserts config was applied
36 - "'fakegroup' in group_array"
39 group_array: "{{ netdata_groups_st.stdout.split('\0') | reject('eq','') | list }}"
40 netdata_can_read: "{{ netdata_stat_st.stat.readable }}"