Skip to content

Commit 8f5d708

Browse files
author
P4T12ICK
committed
fixes
1 parent d7e5d81 commit 8f5d708

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

molecule/default/molecule.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
2124
verifier:
2225
name: ansible

tasks/install_art.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
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: |
@@ -22,8 +27,8 @@
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:

0 commit comments

Comments
 (0)