mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 10:00:03 -03:30
````
TASK [bootstrap-os : Enable RHEL 8 repos] ***************************************************************************************************************************************************************************************************
fatal: [node6]: FAILED! => {"changed": false, "msg": "This system has no repositories available through subscriptions"}
fatal: [node7]: FAILED! => {"changed": false, "msg": "This system has no repositories available through subscriptions"}
fatal: [node1]: FAILED! => {"changed": false, "msg": "This system has no repositories available through subscriptions"}
root@node1:/kubespray# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
root@node1:/kubespray#
```
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_proxyThe role will configure the package manager (if applicable) to download packages via a proxy. -
override_system_hostname: trueThe 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: falseWhetherlocksmithd(responsible for rolling restarts) should be disabled or be left alone.
CentOS/RHEL
centos_fastestmirror_enabled: falseWhether 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