Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vagrantsetup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
devbox
vagrantsetup
Commits
f1c8c01d
Commit
f1c8c01d
authored
Sep 28, 2019
by
Reimar Stier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install kubernetes cli tool
parent
1a8adcc5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
Customization.md
doc/Customization.md
+5
-0
playbook.yml
playbook.yml
+4
-0
install_kubectl.yml
tasks/install_kubectl.yml
+16
-0
No files found.
doc/Customization.md
View file @
f1c8c01d
...
@@ -13,6 +13,11 @@ ansible-playbook playbook.yml --connection=local -i devbox, -e ansible_become=tr
...
@@ -13,6 +13,11 @@ ansible-playbook playbook.yml --connection=local -i devbox, -e ansible_become=tr
*
From controlling host
*
From controlling host
`ANSIBLE_TAGS=partition vagrant provision`
`ANSIBLE_TAGS=partition vagrant provision`
*
Gather facts for machine
```
ansible --connection=local -i devbox, -m setup devbox
```
# SSH configuration
# SSH configuration
Provision own ssh key to the vagrant box. Compare
[
documentation|https://www.vagrantup.com/docs/vagrantfile/ssh_settings.html
]
Provision own ssh key to the vagrant box. Compare
[
documentation|https://www.vagrantup.com/docs/vagrantfile/ssh_settings.html
]
`config.ssh.insert_key=True`
`config.ssh.insert_key=True`
...
...
playbook.yml
View file @
f1c8c01d
...
@@ -28,3 +28,7 @@
...
@@ -28,3 +28,7 @@
-
import_tasks
:
tasks/xfce4_configuration.yml
-
import_tasks
:
tasks/xfce4_configuration.yml
-
import_tasks
:
tasks/add_path_to_env.yml
-
import_tasks
:
tasks/add_path_to_env.yml
tags
:
desktop_config
tags
:
desktop_config
-
name
:
post install tasks
block
:
-
import_tasks
:
tasks/install_kubectl.yml
tags
:
post_install
\ No newline at end of file
tasks/install_kubectl.yml
0 → 100644
View file @
f1c8c01d
-
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"
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment