add disable-rpcbind role
This commit is contained in:
parent
d68f25b004
commit
03b90b70ce
7
ubuntu/disable-rpcbind.yml
Normal file
7
ubuntu/disable-rpcbind.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Disable rpcbind service
|
||||
hosts: cloud
|
||||
user: root
|
||||
|
||||
roles:
|
||||
- disable-rpcbind
|
9
ubuntu/roles/disable-rpcbind/tasks/main.yml
Normal file
9
ubuntu/roles/disable-rpcbind/tasks/main.yml
Normal 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
|
@ -9,3 +9,4 @@
|
||||
- turn-off-motd-news
|
||||
- apt-maintenance
|
||||
- ssh-enforcement
|
||||
- disable-rpcbind
|
||||
|
Loading…
Reference in New Issue
Block a user