---
- name: Download Packer
  sudo: yes
  get_url: url={{ packer_url }} dest={{ packer_install_dir }}

- name: Extract Packer
  sudo: yes
  unarchive: copy=no src={{ packer_install_dir }}/{{ packer_archive }}.zip dest={{ packer_install_dir }}

- name: Remove downloaded packer_archive
  sudo: yes
  shell: "rm -f {{ packer_install_dir }}/{{ packer_archive }}.zip"

---
- name: Download Packer
  sudo: yes
  shell: curl -o {{ packer_install_dir }}/{{ packer_archive }}.zip {{ packer_url }}

- name: Extract Packer
  sudo: yes
  unarchive: copy=no src={{ packer_install_dir }}/{{ packer_archive }}.zip dest={{ packer_install_dir }}

- name: Remove downloaded packer_archive
  sudo: yes
  shell: "rm -f {{ packer_install_dir }}/{{ packer_archive }}.zip"

Remove get_url in favour of curl
Remove get_url in favour of curl