Ansible Playbooks to mitigate certain CVEs
apply_mitigation=False
if you want to unapply the mitigationClone the git repo
git clone https://github.com/gonoph/ansible-mitigation.git
cd ansible-mitigation
ansible-playbook -i host1.example.com, mitigate.cve-2024-47176.yml
Create an inventory
file
[all]
host1.example.com
host2.example.com
host3.example.com
[all:vars]
ansible_user=ansible
Run the playbook with the inventory
ansible-playbook -i inventory mitigate.cve-2024-47176.yml
ansible-playbook -i inventory mitigate.cve-2024-47176.yml -e apply_mitigation=False
This is provided for educational purposes only. Use at your own risk!
Please refer to your official documentation and patching poliices before attempting to run this in production.