Default variables

Hostname and domain

bootstrap_domain

Set custom DNS domain on a given host.

bootstrap_domain: ''
bootstrap_hostname

Set custom DNS hostname on a given host.

bootstrap_hostname: '{{ inventory_hostname_short | default(inventory_hostname) }}'
bootstrap_hostname_v6_loopback

Set custom DNS hostname on a given host also for IPv6. This is only needed when you don’t have properly working DNS and still need to resolve the hostname as IPv6 address. Refer to https://github.com/debops/ansible-bootstrap/pull/9

bootstrap_hostname_v6_loopback: False

APT and packages

bootstrap_raw

Install minimal set of required packages using raw Ansible module.

bootstrap_raw: True
bootstrap_base_packages

Base packages installed during bootstrap.

bootstrap_base_packages: [ 'python', 'python-apt', 'python-pip', 'sudo', 'lsb-release' ]
bootstrap_packages

Install additional packages during bootstrap.

bootstrap_packages: []

System Administrator account

bootstrap_admin

Enable configuration of administrator account.

bootstrap_admin: True
bootstrap_admin_system

Should the admin account be a system account (UID < 1000) ?

bootstrap_admin_system: True
bootstrap_admin_name

Name of the admin account.

bootstrap_admin_name: '{{ (ansible_ssh_user
                           if (ansible_ssh_user | bool and
                               ansible_ssh_user != "root")
                           else lookup("env","USER")) }}'
bootstrap_admin_group

List of local system groups which admin account will be added to.

bootstrap_admin_groups:  [ "admins", "staff", "adm" ]
bootstrap_admin_home

Home directory of the administrator account, when it’s a “normal” account.

bootstrap_admin_home: '{{ "/home/" + bootstrap_admin_name }}'
bootstrap_admin_system_home

Home directory of the administrator account, when it’s a “system” account.

bootstrap_admin_system_home: '{{ "/var/local/" + bootstrap_admin_name }}'
bootstrap_admin_home_group

Specify administrator account home directory group.

bootstrap_admin_home_group: '{{ bootstrap_admin_groups[0] }}'
bootstrap_admin_home_mode

Specify permissions for administrator account home directory.

bootstrap_admin_home_mode: '0750'
bootstrap_admin_comment

Comment / GECOS field of the administrator account.

bootstrap_admin_comment: 'System Administrator'
bootstrap_admin_shell

Default shell set on the admin account.

bootstrap_admin_shell: '/bin/bash'
bootstrap_admin_sshkeys

List of SSH keys configured on root and administrator accounts.

bootstrap_admin_sshkeys: [ '{{ lookup("pipe","ssh-add -L | grep ^ssh || cat ~/.ssh/id_rsa.pub || true") }}' ]
bootstrap_admin_manage_existing

Manage the admin user even if it already exists on the system. The default is to not create or modify the admin user if it already exists. Note that SSH key and sudo configuration is still performed, regardless of this variable. Use bootstrap_admin_sshkeys or bootstrap_sudo to change that behavior if needed.

bootstrap_admin_manage_existing: False

Access to sudo commands

bootstrap_sudo

Configure passwordless sudo access for selected accounts.

bootstrap_sudo: True
bootstrap_sudo_group

A group which grants passwordless sudo access.

bootstrap_sudo_group: '{{ bootstrap_admin_groups[0] | default("") }}'