Skip to content

Commit fc8b056

Browse files
authored
Merge pull request #58 from cloudalchemy/superq/fixup_unpack
Fix download and unpack
2 parents 90e7172 + 808c494 commit fc8b056

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tasks/install.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,27 @@
4141
delegate_to: localhost
4242
check_mode: false
4343

44+
- name: Create unpack dir
45+
become: false
46+
file:
47+
path: "/tmp/coredns_{{ coredns_version }}_linux_{{ go_arch }}"
48+
state: directory
49+
mode: 0755
50+
delegate_to: localhost
51+
check_mode: false
52+
4453
- name: Unpack coredns binary
4554
become: false
4655
unarchive:
4756
src: "/tmp/coredns_{{ coredns_version }}_linux_{{ go_arch }}.tgz"
48-
dest: "/tmp"
49-
creates: "/tmp/coredns"
57+
dest: "/tmp/coredns_{{ coredns_version }}_linux_{{ go_arch }}"
58+
creates: "/tmp/coredns_{{ coredns_version }}_linux_{{ go_arch }}/coredns"
5059
delegate_to: localhost
5160
check_mode: false
5261

5362
- name: Propagate coredns binaries
5463
copy:
55-
src: "/tmp/coredns"
64+
src: "/tmp/coredns_{{ coredns_version }}_linux_{{ go_arch }}/coredns"
5665
dest: "/usr/local/bin/coredns"
5766
mode: 0750
5867
owner: "{{ coredns_system_user }}"

0 commit comments

Comments
 (0)