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

Latest commit

 

History

History
54 lines (41 loc) · 1007 Bytes

README.md

File metadata and controls

54 lines (41 loc) · 1007 Bytes

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