Skip to content

Commit d9afaf7

Browse files
author
P4T12ICK
committed
fixes
1 parent 3ae7b92 commit d9afaf7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

molecule/default/verify.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
hosts: all
44
gather_facts: false
55
tasks:
6-
- name: Verify Splunk Universal Forwarder
7-
ansible.builtin.command: which splunk
8-
changed_when: false
6+
- name: Verify Splunk Universal Forwarder binary exists
7+
ansible.builtin.stat:
8+
path: /opt/splunkforwarder/bin/splunk
99
register: result
10-
failed_when: result.rc != 0
10+
failed_when: not result.stat.exists
1111

12-
- name: Verify osquery
13-
ansible.builtin.command: which osqueryd
14-
changed_when: false
12+
- name: Verify osquery binary exists
13+
ansible.builtin.stat:
14+
path: /usr/bin/osqueryd
1515
register: result
16-
failed_when: result.rc != 0
16+
failed_when: not result.stat.exists
1717

1818
- name: Verify osqueryd service exists
1919
ansible.builtin.stat:
20-
path: /etc/systemd/system/osqueryd.service
20+
path: /lib/systemd/system/osqueryd.service
2121
register: result
2222
failed_when: not result.stat.exists
2323

@@ -35,6 +35,6 @@
3535

3636
- name: Verify ART directory exists
3737
ansible.builtin.stat:
38-
path: /opt/art
38+
path: /root/AtomicRedTeam/atomics
3939
register: result
4040
failed_when: not result.stat.isdir

0 commit comments

Comments
 (0)