ansible-playbooks/ubuntu/roles/disable-rpcbind/tasks/main.yml

23 lines
463 B
YAML
Raw Normal View History

2024-02-28 12:39:27 +00:00
---
# This role disables the rpcbind service on hosts
- name: Disable and mask the rpcbind service
systemd:
2024-02-28 12:41:47 +00:00
name: rpcbind.service
enabled: false
state: stopped
masked: true
- name: Disable and mask the rpcbind socket
systemd:
name: rpcbind.socket
2024-02-28 12:39:27 +00:00
enabled: false
state: stopped
masked: true
2024-02-28 12:43:29 +00:00
- name: Disable and mask the rpcbind target
systemd:
name: rpcbind.target
enabled: false
state: stopped
masked: true