File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,5 +18,8 @@ provisioner:
1818 playbooks :
1919 converge : converge.yml
2020 verify : verify.yml
21+ log : true
22+ options :
23+ vvv : true
2124verifier :
2225 name : ansible
Original file line number Diff line number Diff line change 1414 register : art_module_installed
1515 changed_when : false
1616
17+ - name : Set fact for Atomic Red Team installation needed
18+ set_fact :
19+ art_needs_installation : " {{ (not (art_atomics_installed.stat.exists | default(false))) or (not (art_module_installed.stat.exists | default(false))) }}"
20+ changed_when : false
21+
1722- name : Install Atomic Red Team
1823 become : true
1924 shell : |
2227 IEX (IWR https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1);
2328 Install-AtomicRedTeam -Force'
2429 register : output_art
25- when : (not art_atomics_installed.stat.exists | default(false)) or (not art_module_installed.stat.exists | default(false))
26- changed_when : (not art_atomics_installed.stat.exists | default(false)) or (not art_module_installed.stat.exists | default(false))
30+ when : art_needs_installation | bool
31+ changed_when : art_needs_installation | bool
2732
2833- name : create directory for default powershell profile
2934 file :
You can’t perform that action at this time.
0 commit comments