Skip to content

Instantly share code, notes, and snippets.

@Chan9390
Chan9390 / manage_users.yml
Created October 23, 2018 13:39
Ansible script to manage Linux users and their authorized SSH keys
---
- hosts: production
gather_facts: no # This is helpful if a new EC2 instance is to be provisioned
become: yes
vars:
- default_users: ['nobody']
- required_users: ['badshah', 'bob', 'alice']
tasks: