allowed for change of crowdsec ports from their defaults
This commit is contained in:
27
roles/init-server/tasks/contingent/pkg/crowdsec.yml
Normal file
27
roles/init-server/tasks/contingent/pkg/crowdsec.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
- name: Changing the address and port of the Crowdsec server
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/crowdsec/config.yaml
|
||||
regexp: "^ {4}listen_uri"
|
||||
line: " listen_uri: localhost:{{ crowdsec.port }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "644"
|
||||
- name: Changing the address of the Crowdsec Prometheus server
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/crowdsec/config.yaml
|
||||
regexp: "^ {2}listen_uri"
|
||||
line: " listen_addr: localhost"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "644"
|
||||
- name: Changing target or expected address for credentials of the Crowdsec local API
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/crowdsec/local_api_credentials.yaml
|
||||
regexp: "^url"
|
||||
line: "url: http://localhost:{{ crowdsec.port }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "644"
|
||||
Reference in New Issue
Block a user