diff --git a/terraform/ansible/roles/linux_install_art/files/Microsoft.PowerShell_profile.ps1 b/terraform/ansible/roles/linux_install_art/files/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 000000000..0c4ac268f --- /dev/null +++ b/terraform/ansible/roles/linux_install_art/files/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,2 @@ +Import-Module "/root/AtomicRedTeam/invoke-atomicredteam/Invoke-AtomicRedTeam.psd1" -Force +$PSDefaultParameterValues = @{"Invoke-AtomicTest:PathToAtomicsFolder"="/root/AtomicRedTeam/atomics"} diff --git a/terraform/ansible/roles/linux_install_art/tasks/main.yml b/terraform/ansible/roles/linux_install_art/tasks/main.yml index a6749922d..5a0a2eae7 100644 --- a/terraform/ansible/roles/linux_install_art/tasks/main.yml +++ b/terraform/ansible/roles/linux_install_art/tasks/main.yml @@ -9,5 +9,17 @@ Install-AtomicRedTeam -Force' register: output_art +- name: create directory for default powershell profile + file: + path: /root/.config/powershell + recurse: yes + state: directory + +- name: copy default powershell profile + copy: + src: Microsoft.PowerShell_profile.ps1 + dest: /root/.config/powershell/Microsoft.PowerShell_profile.ps1 + force: yes + - debug: - var: output_art.stdout_lines \ No newline at end of file + var: output_art.stdout_lines diff --git a/terraform/ansible/roles/splunk_byo_windows/templates/outputs.conf.j2 b/terraform/ansible/roles/splunk_byo_windows/templates/outputs.conf.j2 index 5b3d9c0a2..75d0d5597 100644 --- a/terraform/ansible/roles/splunk_byo_windows/templates/outputs.conf.j2 +++ b/terraform/ansible/roles/splunk_byo_windows/templates/outputs.conf.j2 @@ -2,4 +2,4 @@ defaultGroup=my_indexers [tcpout:my_indexers] -server={{ byo_splunk_ip }}:9997 \ No newline at end of file +server={{ splunk_server.byo_splunk_ip }}:9997