Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: all
- gather_facts: true
- tasks:
- - name: Add an apt signing key for Kubernetes
- apt_key:
- url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
- state: present
- - name: Adding apt repository for Kubernetes
- apt_repository:
- repo: deb https://apt.kubernetes.io/ kubernetes-xenial main
- state: present
- filename: kubernetes.list
- - name: Install Kubernetes binaries
- apt:
- name: "{{ packages }}"
- state: present
- update_cache: yes
- vars:
- packages:
- - kubelet
- - kubeadm
- - hosts: master
- gather_facts: true
- tasks:
- - name: Install Kubernetes kubectl for master node
- apt:
- name: "{{ packages }}"
- state: present
- update_cache: yes
- vars:
- packages:
- - kubectl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement