Skip to content

Commit

Permalink
resolved issue with the windows template due to change in upstream Gi…
Browse files Browse the repository at this point in the history
…t repo

Updated apache tasks in report_server role to enable it to skip permitting traffic when firewalld is not installed
  • Loading branch information
Todd Ruch committed Apr 26, 2024
1 parent 2727972 commit 46733ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Service" /v DisableRu
Set-MpPreference -DisableRealtimeMonitoring $true

# Enable WinRM
Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile C:\ConfigureRemotingForAnsible.ps1
Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/stable-2.12/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile C:\ConfigureRemotingForAnsible.ps1
C:\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSP

# add ec2-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
- name: Include system variables
ansible.builtin.include_vars: "{{ ansible_system }}.yml"

- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto

- name: Permit traffic in default zone for http service
ansible.posix.firewalld:
service: http
permanent: true
state: enabled
immediate: true
check_mode: false
when: "'firewalld' in ansible_facts.packages"

- name: Install httpd package
ansible.builtin.yum:
Expand Down

0 comments on commit 46733ca

Please sign in to comment.