Ansible role to bootstrap new servers for it-spirit.
Use this role to do the initial provisioning of your new server. It will ensure that your software packages are up to date and your system administrators are set up.
This role has no requirements.
Available variables are listed below, along with default values (see vars/main.yml).
A list of system administrators to set up.
sysadmins: [] # - name: username # fullname: User Name # state: present # shell: '/bin/bash' # password: 'secret' # email: [email protected] # ssh_key: 'ssh key'
This one overrides the default settings from geerlingguy.security
.
You can override it within your playbook, group or host variables.
firewall_allowed_tcp_ports: - '25'
This role has dependencies to the following roles:
- hosts: all vars_files: - vars/secrets.yml roles: - spirit.bootstrap
Inside vars/secrets.yml
:
sysadmins: - name: jsmith fullname: John Smith state: present shell: '/bin/bash' password: 'hashedpassword' email: [email protected] ssh_key: 'ssh-rsa ABCDEF00000000... [email protected]'
MIT
This role was created 2016-2017 by it-spirit Software.