Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
b2a27ed0
Commit
b2a27ed0
authored
8 years ago
by
Matthew Mosesohn
Browse files
Options
Downloads
Patches
Plain Diff
Fix bash completion installation
parent
d8ae5080
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/master/tasks/main.yml
+7
-9
7 additions, 9 deletions
roles/kubernetes/master/tasks/main.yml
with
7 additions
and
9 deletions
roles/kubernetes/master/tasks/main.yml
+
7
−
9
View file @
b2a27ed0
...
...
@@ -11,21 +11,19 @@
changed_when
:
false
tags
:
[
hyperkube
,
kubectl
,
upgrade
]
-
name
:
Gather kubectl bash completion
command
:
"
{{
bin_dir
}}/kubectl
completion
bash"
no_log
:
true
register
:
kubectl_bash_completion
-
name
:
Install kubectl bash completion
shell
:
"
{{
bin_dir
}}/kubectl
completion
bash
>/etc/bash_completion.d/kubectl.sh"
#no_log: true
when
:
ansible_os_family in ["Debian","RedHat"]
tags
:
kubectl
-
name
:
Write kubectl bash completion
copy
:
content
:
"
{{
kubectl_bash_completion.stdout
}}"
dest
:
/etc/bash_completion.d/kubectl.sh
-
name
:
Set kubectl bash completion file
file
:
path
:
/etc/bash_completion.d/kubectl.sh
owner
:
root
group
:
root
mode
:
0755
when
:
ansible_os_family in ["Debian","RedHat"]
and kubectl_bash_completion.changed
when
:
ansible_os_family in ["Debian","RedHat"]
tags
:
[
kubectl
,
upgrade
]
-
name
:
Write kube-apiserver manifest
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment