This commit is contained in:
2023-12-18 21:38:30 +01:00
commit 9e2c1607e0
9 changed files with 205 additions and 0 deletions

37
tasks/main.yml Normal file
View File

@@ -0,0 +1,37 @@
---
# tasks file for tco.burp_server
- name: install burp repo
ansible.builtin.get_url:
url: https://copr.fedorainfracloud.org/coprs/yopito/burp2/repo/epel-{{ ansible_distribution_major_version }}/yopito-burp2-epel-{{ ansible_distribution_major_version }}.repo
dest: /etc/yum.repos.d/burp.repo
- name: install burp server
ansible.builtin.package:
name: burp2-server
state: present
- name: configure
ansible.builtin.template:
src: burp-server.conf
dest: /etc/burp
notify: restart burp
- name: open firewall
ansible.posix.firewalld:
port: "{{ item }}"
immediate: true
permanent: true
state: enabled
loop:
- 4971/tcp
- 4972/tcp
when: use_firewalld
- name: configure service
ansible.builtin.service:
name: burp
state: started
enabled: true