austincloudguru.common
Common
This role sets up common items on every server.
Completed Tasks:
- Users: Creates user accounts.
- Groups: Creates groups for users.
- Sudoers: Sets up sudoers files for specific users.
- MOTD: Creates the Message of the Day.
- Hostname: Sets the server's hostname.
- Extra Packages: Installs any additional packages needed.
Requirements
This role has been tested on Ubuntu 18.04 and Amazon Linux 2.
Role Variables
Variables for Playbook
In your playbook, you should define the following variables:
common_groups:
- name:
id:
state:
common_users:
- name:
id:
group:
state:
shell:
ssh_key:
common_sudoers:
- name: sysadmin
state: present
permission: "ALL=(ALL) NOPASSWD:ALL"
common_hostname:
Dependencies
None
Example Playbook
Set up the needed variables in your playbook:
- hosts: all
vars:
ansible_python_interpreter: /usr/bin/python3
common_groups:
- {name: sysadmin, id: 5000, state: present}
common_users:
- name: mark.honomichl
id: 5000
group: sysadmin
state: present
shell: /bin/zsh
ssh_key: ssh-rsa $MYKEY
common_sudoers:
- {name: sysadmin, state: present, permission: "ALL=(ALL) NOPASSWD:ALL"}
roles:
- austincloudguru.common
License
MIT
Author Information
Mark Honomichl, also known as AustinCloudGuru Created in 2020
Installa
ansible-galaxy install austincloudguru.common
Licenza
mit
Download
18
Proprietario