Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
/ roles Public archive

General-purpose reusable Ansible roles

License

Notifications You must be signed in to change notification settings

mrgnr/roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Roles

General-purpose reusable Ansible roles.

Getting started

Install Ansible, preferably in a Python virtual environment:

$ pip install ansible

Clone this repo:

$ cd /path/to/extra/roles
$ git clone [email protected]:mrgnr/roles.git mrgnr_roles

Add it to your ansible.cfg:

[defaults]
roles_path = /path/to/extra/roles/mrgnr_roles

Include roles in your playbooks, e.g.:

---

- name: my_app
  hosts: app_servers
  become_method: sudo
  become: yes
  gather_facts: True
  roles:
    - packages
    - users
    - ssh
    - fail2ban
    - unattended-upgrades
    - tor
    - ufw
    - nginx
    - letsencrypt
    - my-app

About

General-purpose reusable Ansible roles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published