Merge pull request #910 from mattymo/escape_curly
Fix ansible 2.2.1 handling of registered varspull/917/head
commit
1ee33d3a8d
|
@ -8,7 +8,8 @@
|
||||||
{%- if pull_by_digest|bool %}{{download.repo}}@sha256:{{download.sha256}}{%- else -%}{{download.repo}}:{{download.tag}}{%- endif -%}
|
{%- if pull_by_digest|bool %}{{download.repo}}@sha256:{{download.sha256}}{%- else -%}{{download.repo}}:{{download.tag}}{%- endif -%}
|
||||||
|
|
||||||
- name: Register docker images info
|
- name: Register docker images info
|
||||||
shell: "{{ docker_bin_dir }}/docker images -q | xargs {{ docker_bin_dir }}/docker inspect -f {% raw %}'{{.RepoTags}},{{.RepoDigests}}'{% endraw %}"
|
raw: >-
|
||||||
|
{{ docker_bin_dir }}/docker images -q | xargs {{ docker_bin_dir }}/docker inspect -f "{{ '{{' }} .RepoTags {{ '}}' }},{{ '{{' }} .RepoDigests {{ '}}' }}"
|
||||||
register: docker_images_raw
|
register: docker_images_raw
|
||||||
failed_when: false
|
failed_when: false
|
||||||
when: not download_always_pull|bool
|
when: not download_always_pull|bool
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue