Unverified Commit ffe21ebf authored by Erik Wilson's avatar Erik Wilson Committed by GitHub

Merge pull request #515 from tamsky/ansible/syntax-fixes

contrib/ansible: Fixes 'search' test usage syntax
parents 4ea110f7 9b77fb35
......@@ -6,7 +6,7 @@
state: absent
- name: Download k3s binary x64
get_url:
get_url:
url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s
dest: /usr/local/bin/k3s
owner: root
......@@ -16,21 +16,23 @@
when: ( ansible_facts.architecture == "x86_64" )
- name: Download k3s binary arm64
get_url:
get_url:
url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s-arm64
dest: /usr/local/bin/k3s
owner: root
group: root
mode: 755
when: ( ansible_facts.architecture is search "arm" and
ansible_facts.userspace_bits == "64" )
when: ( ansible_facts.architecture is search("arm") )
and
( ansible_facts.userspace_bits == "64" )
- name: Download k3s binary armhf
get_url:
get_url:
url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s-armhf
dest: /usr/local/bin/k3s
owner: root
group: root
mode: 755
when: ( ansible_facts.architecture is search "arm" and
ansible_facts.userspace_bits == "32" )
when: ( ansible_facts.architecture is search("arm") )
and
( ansible_facts.userspace_bits == "32" )
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