---
- name: deploy TERRAFORM to the VM appliance
  hosts: "{{ target }}"
  become: true
  tasks:

  - name: get Zip file from URL
    get_url:
      url: https://releases.hashicorp.com/terraform/0.8.4/terraform_0.8.4_linux_amd64.zip
      dest: /tmp
    register: new_archive

  - name: install Unzip package
    apt: name=unzip state=present update_cache=yes
    when: when: ansible_os_family == "Debian"

  - name: install Unzip package
    yum: name=unzip state=present update_cache=yes
    when: when: ansible_os_family == "RedHat"

  - name: unarchive source
    #become: true
    become_user: "{{ ansible_user_id }}"
    unarchive:
      src: /tmp/terraform_0.8.4_linux_amd64.zip
      dest: /usr/local/bin
      remote_src: True
    when: new_archive|changed


---
- name: deploy TERRAFORM to the VM appliance
  hosts: "{{ target }}"
  become: true
  tasks:

  - name: get Zip file from URL
    get_url:
      url: https://releases.hashicorp.com/terraform/0.8.4/terraform_0.8.4_linux_amd64.zip
      dest: /tmp
    register: new_archive

  - name: install Unzip package
    apt: name=unzip state=present update_cache=yes
    when: ansible_os_family == "Debian"

  - name: install Unzip package
    yum: name=unzip state=present update_cache=yes
    when: ansible_os_family == "RedHat"

  - name: unarchive source
    #become: true
    become_user: "{{ ansible_user_id }}"
    unarchive:
      src: /tmp/terraform_0.8.4_linux_amd64.zip
      dest: /usr/local/bin
      remote_src: True
    when: new_archive|changed


Create 'N' Centos 7 nodes to manually deploy a K8s cluster
Create 'N' Centos 7 nodes to manually deploy a K8s cluster
