Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
tags: [init-server, otelcol]
- role: ethpandaops.general.vector
tags: [init-server, vector]
- role: disable_rpcbind
tags: [init-server, disable_rpcbind]

- hosts: hive
become: true
Expand Down
15 changes: 15 additions & 0 deletions ansible/roles/disable_rpcbind/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# rpcbind (portmapper, port 111) ships enabled on Debian via nfs-common and listens on all
# interfaces. Nothing on these hosts uses NFS/RPC, so stop and mask it.
- name: Gather service facts
ansible.builtin.service_facts:

- name: Stop and mask rpcbind
ansible.builtin.systemd:
name: "{{ item }}"
state: stopped
enabled: false
masked: true
loop:
- rpcbind.socket
- rpcbind.service
when: "'rpcbind.service' in ansible_facts.services"
Loading