Commit f1c8c01d authored by Reimar Stier's avatar Reimar Stier

Install kubernetes cli tool

parent 1a8adcc5
......@@ -13,6 +13,11 @@ ansible-playbook playbook.yml --connection=local -i devbox, -e ansible_become=tr
* From controlling host
`ANSIBLE_TAGS=partition vagrant provision`
* Gather facts for machine
```
ansible --connection=local -i devbox, -m setup devbox
```
# SSH configuration
Provision own ssh key to the vagrant box. Compare [documentation|https://www.vagrantup.com/docs/vagrantfile/ssh_settings.html]
`config.ssh.insert_key=True`
......
......@@ -28,3 +28,7 @@
- import_tasks: tasks/xfce4_configuration.yml
- import_tasks: tasks/add_path_to_env.yml
tags: desktop_config
- name: post install tasks
block:
- import_tasks: tasks/install_kubectl.yml
tags: post_install
\ No newline at end of file
- name: Add kubernetes apt repository key
apt_key:
url: "https://packages.cloud.google.com/apt/doc/apt-key.gpg"
# curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg
id: 54A647F9048D5688D7DA2ABE6A030B21BA07F4FB
state: present
- name: Add kubernetes apt repository
apt_repository:
repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
state: present
register: _kubectl_apt_repository
- name: Install kubernetes command line tool
apt:
name: ["kubectl"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment