add disable-rpcbind role

This commit is contained in:
packetcat 2024-02-28 07:39:27 -05:00
parent d68f25b004
commit 03b90b70ce
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
- name: Disable rpcbind service
hosts: cloud
user: root
roles:
- disable-rpcbind

View File

@ -0,0 +1,9 @@
---
# This role disables the rpcbind service on hosts
- name: Disable and mask the rpcbind service
systemd:
name: rpcbind
enabled: false
state: stopped
masked: true

View File

@ -9,3 +9,4 @@
- turn-off-motd-news - turn-off-motd-news
- apt-maintenance - apt-maintenance
- ssh-enforcement - ssh-enforcement
- disable-rpcbind