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
No related tags found
No related merge requests found
Changes
1
Show 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 @@
...
@@ -11,21 +11,19 @@
changed_when
:
false
changed_when
:
false
tags
:
[
hyperkube
,
kubectl
,
upgrade
]
tags
:
[
hyperkube
,
kubectl
,
upgrade
]
-
name
:
Gather kubectl bash completion
-
name
:
Install kubectl bash completion
command
:
"
{{
bin_dir
}}/kubectl
completion
bash"
shell
:
"
{{
bin_dir
}}/kubectl
completion
bash
>/etc/bash_completion.d/kubectl.sh"
no_log
:
true
#no_log: true
register
:
kubectl_bash_completion
when
:
ansible_os_family in ["Debian","RedHat"]
when
:
ansible_os_family in ["Debian","RedHat"]
tags
:
kubectl
tags
:
kubectl
-
name
:
Write kubectl bash completion
-
name
:
Set kubectl bash completion file
copy
:
file
:
content
:
"
{{
kubectl_bash_completion.stdout
}}"
path
:
/etc/bash_completion.d/kubectl.sh
dest
:
/etc/bash_completion.d/kubectl.sh
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0755
mode
:
0755
when
:
ansible_os_family in ["Debian","RedHat"]
and kubectl_bash_completion.changed
when
:
ansible_os_family in ["Debian","RedHat"]
tags
:
[
kubectl
,
upgrade
]
tags
:
[
kubectl
,
upgrade
]
-
name
:
Write kube-apiserver manifest
-
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