File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments