From b20d83e4be20d068498607bae10e16fba126c68e Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 18 Jul 2017 09:42:29 +0300 Subject: [PATCH] - Added Packer installation. --- workstation.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/workstation.yml b/workstation.yml index 038b9f7..b9351a1 100644 --- a/workstation.yml +++ b/workstation.yml @@ -21,6 +21,7 @@ that: - ansible_pkg_mgr == 'apt' - ansible_service_mgr == 'systemd' + - ansible_architecture == 'x86_64' - name: APT install with_items: @@ -151,3 +152,19 @@ command: lein register: install_leiningen changed_when: "'Downloading Leiningen' in install_leiningen.stdout" + + - name: Download Packer zip + get_url: + url: https://releases.hashicorp.com/packer/1.0.2/packer_1.0.2_linux_amd64.zip + dest: /root/packer.zip + owner: root + group: root + mode: 0o0644 + + - name: Unarchive Packer zip + unarchive: + src: /root/packer.zip + dest: /usr/local/bin/ + remote_src: True + owner: root + group: root -- GitLab