k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
980 B
46 lines
980 B
---
|
|
|
|
- name: Upgrade all packages to the latest version (yum)
|
|
yum:
|
|
name: '*'
|
|
state: latest
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
- name: Install required packages
|
|
yum:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
with_items:
|
|
- bind-utils
|
|
- ntp
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
- name: Install required packages
|
|
apt:
|
|
upgrade: yes
|
|
update_cache: yes
|
|
cache_valid_time: 3600
|
|
name: "{{ item }}"
|
|
state: latest
|
|
install_recommends: no
|
|
with_items:
|
|
- dnsutils
|
|
- ntp
|
|
when: ansible_os_family == "Debian"
|
|
|
|
- name: Upgrade all packages to the latest version (apt)
|
|
shell: apt-get -o \
|
|
Dpkg::Options::=--force-confdef -o \
|
|
Dpkg::Options::=--force-confold -q -y \
|
|
dist-upgrade
|
|
environment:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
when: ansible_os_family == "Debian"
|
|
|
|
|
|
# Create deployment user if required
|
|
- include: user.yml
|
|
when: k8s_deployment_user is defined
|
|
|
|
# Set proper sysctl values
|
|
- include: sysctl.yml
|