This message was deleted.
# general
a
This message was deleted.
a
@polite-translator-35958 Maybe this will be helpful? https://github.com/rancherfederal/rancher-stig-compliance
p
Yeah, that’s essentially what I’m trying to do in an ansible task…. This repo seems to be to validate the STIG requirements have been met.
Basically, I’m following this: https://github.com/clemenko/rancher_stig
I’m just looking for an idempotent way to do this:
Copy code
kubectl patch -n cattle-system service rancher --type=json -p '[{"op":"remove","path":"/spec/ports/0"}]'
in ansible.
Because if I’m reading that correctly, it will remove the first port every time.
It would be cool if json patch support an op remove by name somehow.