vundb / ansible-role-system-bootstrap
Ansible role for bootstraping instances.
Installs: 114
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:chef-role
Requires
- composer/installers: ~1.0
README
This role will boostraping instances, updates package tree and prepare system for executing further roles.
The hostname and host entries will be set.
The Timezone will be configured.
Supported Distributions
- Gentoo
Role Variables
-
system_update
: Perform update for system package tree. Possible values are yes or no. Default yes. -
system_profile
: Gentoo's system profile to use. Default value isdefault/linux/amd64/17.0
. -
system_hostname
: System hostname. Default will be the variableinventory_hostname
. -
system_timezone
: System timezone in the timezone database format. -
system_host_entries
: Array with host entries. See default vars file -
system_locale
Set system wide locale. If no value is set, the defaulten_US.UTF-8
will be used.
Dependencies
None.
Example Playbook
- hosts: all
roles:
- role: vundb-system-bootstrap
system_update: yes
system_hostname 'exaple.com'
system_timezone: 'Europe/Berlin'
system_host_entries:
- { ip: "127.0.0.1", name: "exaple.com", state: "present" }
- { ip: "::1", name: "exaple.com", state: "absent" }
License
MIT