Skip to content
Snippets Groups Projects
Select Git revision
  • 290bc993a54ece97d65a617db8692cc6bd18de01
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
22 results

setup.py

Blame
  • bootstrap-os.md 1.71 KiB

    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/AlmaLinux/Rocky Linux

    • 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.