c12s-kubespray/roles/bootstrap-os
Terry f72063e7c2
Remove DNSSEC config management in bootstrap-debian.yml (#7408)
DNSSEC is off by default on ubuntu/bionic64 (18.04) as per resolved.conf(5).
These tasks are artefacts of obsolete infra configuration, and no longer needed.

Further removing these tasks resolves the issue that the tasks always reports
'changed' and bounces systemd-resolved unneccesarily, even if there was no
actual modification of /etc/systemd/resolved.conf.
2021-03-29 00:00:45 -07:00
..
defaults Adding option to disable globally applying a proxy to etc/yum.conf (#6828) 2020-10-20 23:22:19 -07:00
files Fix hash of pypy3.6-v7.3.2-linux64 archive. (#6897) 2020-11-11 09:20:27 -08:00
handlers Add RHEL support subscription registration (#6572) 2020-11-24 08:33:00 -08:00
molecule/default Upgrade molecule to v3 (#6468) 2020-08-04 05:24:19 -07:00
tasks Remove DNSSEC config management in bootstrap-debian.yml (#7408) 2021-03-29 00:00:45 -07:00
README.md Fix markdownlint failures under ./roles/ (#7089) 2020-12-30 05:07:49 -08:00

bootstrap-os

Bootstrap an Ansible host to be able to run Ansible modules.

This role will:

  • configure the package manager (if applicable) to be able to fetch packages
  • install Python
  • install the necessary packages to use Ansible's package manager modules
  • set the hostname of the host to {{ inventory_hostname }} when requested

Requirements

A host running an operating system that is supported by Kubespray. See Supported Linux Distributions for a current list.

SSH access to the host.

Role Variables

Variables are listed with their default values, if applicable.

General variables

  • http_proxy/https_proxy The role will configure the package manager (if applicable) to download packages via a proxy.

  • override_system_hostname: true The role will set the hostname of the machine to the name it has according to Ansible's inventory (the variable {{ inventory_hostname }}).

Per distribution variables

Flatcar Container Linux

  • coreos_locksmithd_disable: false Whether locksmithd (responsible for rolling restarts) should be disabled or be left alone.

CentOS/RHEL

  • centos_fastestmirror_enabled: false Whether the fastestmirror yum plugin should be enabled.

Dependencies

The kubespray-defaults role is expected to be run before this role.

Example Playbook

Remember to disable fact gathering since Python might not be present on hosts.

- hosts: all
  gather_facts: false  # not all hosts might be able to run modules yet
  roles:
     - kubespray-defaults
     - bootstrap-os

License

Apache 2.0