Skip to content

mesoform/linux-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux security

An Ansible Role that applies baseline security settings for: Fedora and Debian Linux distros

What is this repository for?

Use this repository to apply secure settings to Linux servers. It should be loaded as an Ansible role and deployed as part of a playbook

How do I get set up?

Create an Ansible requirements.yml file

---
- src: https://github.com/mesoform/linux-security.git
  version: v0.1.0
  name: linux-security.mesoform.com
  scm: git

Create a playbook.yml to run the role

---
- name: 'Secure Hosts'
  hosts: all
  become: true
  roles:
    - role: linux-security.mesoform.com

You will also need to create an Ansible inventory file

Run the playbook

For example if using in a pipeline which uses docker images you could do

pipelines:
  default:
    - step:
        name: Secure Host
        image: mesoform/image-builder
        script:
          - ansible-galaxy role install -r requirements.yml
          - ansible-playbook -v playbook.yml

Official stuff