vundb/ansible-role-system-bootstrap

Ansible role for bootstraping instances.

1.6.0 2019-02-25 07:03 UTC

This package is auto-updated.

Last update: 2024-04-15 14:09:51 UTC


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 is default/linux/amd64/17.0.

  • system_hostname: System hostname. Default will be the variable inventory_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 default en_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

Author Information

  • You can find more roles in my GitHub channel vundb
  • Follow me on Twitter @vundb