Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
P4T12ICK committed Aug 14, 2023
1 parent 446fccf commit 91bc8a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions packer/ansible/nginx_web_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
proxy_server_ip: "10.0.1.12"
proxy_server_port: "8000"
roles:
- linux_universal_forwarder
- nginx_web_proxy
12 changes: 5 additions & 7 deletions packer/ansible/roles/nginx_web_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
---
- include: install_deb_uf.yml
- include: configure_outputs_conf.yml
#- include: install_deb_uf.yml
#- include: configure_outputs_conf.yml
- include: nginx_web_proxy.yml
- include: create_deploymentclient.yml
#- include: create_deploymentclient.yml
- include: configure_inputs.yml

- name: restart splunk
- name: Restart splunk uf
become: true
service:
name: SplunkForwarder
state: restarted
command: "systemctl restart SplunkForwarder"

- name: restart nginx again
become: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- name: change password splunk
shell: '/opt/splunkforwarder/bin/splunk edit user admin -password {{ attack_range_password }} -auth admin:Pl3ase-k1Ll-me:p'
become: yes
ignore_errors: yes

- name: Change hostname
shell: '/opt/splunkforwarder/bin/splunk set default-hostname {{ hostname }} -auth admin:{{ attack_range_password }}'
Expand Down

0 comments on commit 91bc8a9

Please sign in to comment.