Skip to content

Commit e824cdc

Browse files
authored
Move 'Install Utilities' block up
An order of operations problem exists where scripts reliant on `choco install` being available fail because the script installing chocolatey (`install_utilities.ps1`) isn't run until after the fact. This has the unintended consequence of causing applications such as osquery to install incorrectly since that task is run before `choco install` in the current configuration.
1 parent f9c12f9 commit e824cdc

File tree

1 file changed

+8
-8
lines changed
  • Proxmox/Ansible/roles/common/tasks

1 file changed

+8
-8
lines changed

Proxmox/Ansible/roles/common/tasks/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
---
22

3+
- name: Install Utilities
4+
win_shell: ".\\install-utilities.ps1"
5+
args:
6+
chdir: 'c:\vagrant\scripts'
7+
register: utilities
8+
failed_when: "'Exception' in utilities.stdout"
9+
ignore_errors: true
10+
311
- name: Downloading the Palantir WEF Configuration
412
win_shell: ".\\download_palantir_wef.ps1"
513
args:
@@ -53,11 +61,3 @@
5361
failed_when: "'Exception' in redteam.stdout"
5462

5563
- debug: msg="{{ redteam.stdout_lines }}"
56-
57-
- name: Install Utilities
58-
win_shell: ".\\install-utilities.ps1"
59-
args:
60-
chdir: 'c:\vagrant\scripts'
61-
register: utilities
62-
failed_when: "'Exception' in utilities.stdout"
63-
ignore_errors: true

0 commit comments

Comments
 (0)