ansible-playbook vmhardening.yml -K
This role 'vmhardening' performs security hardening of the linux vm
Preferable Linux types are RedHat, CentOs , Fedora etc
-
This role has three Tasks defined :- os configuration updates :- file permissions changes :- ssh configuration updates
-
vars directory contains the details of different variables defined
-
Handlers directory contains the details of restart program that will be called in the tasks
All tasks are already defined in the sequence.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: client
roles:
- vmhardening
BSD
An optional section for the role authors to include contact information, or a website (HTML is not allowed).