diff --git a/tasks/section_2/cis_2.2.x.yml b/tasks/section_2/cis_2.2.x.yml index be26428..31c5db7 100644 --- a/tasks/section_2/cis_2.2.x.yml +++ b/tasks/section_2/cis_2.2.x.yml @@ -317,6 +317,7 @@ systemd: name: nfs-server masked: true + state: stopped when: - not rhel9cis_use_nfs.server - rhel9cis_use_nfs.service @@ -348,6 +349,7 @@ systemd: name: rpcbind.socket masked: true + state: stopped when: - rhel9cis_use_rpc.server - not rhel9cis_use_rpc.service @@ -378,6 +380,7 @@ systemd: name: rsyncd masked: true + state: stopped when: - rhel9cis_use_rsync.server - not rhel9cis_use_rsync.service