Giter Site home page Giter Site logo

dmotte / ansible-role-hardening Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 22 KB

⚡ Ansible role to harden Debian systems

Home Page: https://galaxy.ansible.com/dmotte/hardening

License: MIT License

ansible ansible-galaxy ansible-role better configuration debian galaxy hard harden hardening

ansible-role-hardening's Introduction

ansible-role-hardening

GitHub latest release Ansible Galaxy

⚠️ Warning: this project is no longer maintained ⚠️

I decided to convert the Ansible code to Bash for simplicity.


Ansible role to harden Debian systems.

This role has been tested with Debian 12 (bookworm).

Warning: this is only a partial hardening and it should only serve as inspiration to make your own real hardening based on your specific environment.

Usage

  1. Install this role using the ansible-galaxy CLI tool
  2. You can then include it into the tasks section of your Ansible Playbook. See test/playbook.yml for an example of how to do that. Remember to replace the role name with dmotte.hardening.

Note: this role must be run as root (ansible_become: true).

Role variables

See defaults/main.yml.

Development

If you want to contribute to this project, you can use the test/playbook.yml file to test the role while editing it.

Place your inventory file (e.g. hosts.yml) inside the test folder.

Edit the vars section of the test/playbook.yml file to match your scenario.

You can then execute the playbook against your host:

cd test/
ansible-playbook -i hosts.yml playbook.yml

ansible-role-hardening's People

Contributors

dependabot[bot] avatar dmotte avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.