---

- hosts: localhost # hostname
  become: no
  gather_facts: no

  tasks:

    - name: Remove homebrew-cask
      homebrew: name=brew-cask state=absent

    - name: brew tap
      homebrew_tap: tap={{item}}
      with_items:
        - caskroom/cask
        - caskroom/versions

    - name: Install devtools by .dmg
      homebrew_cask: name={{item}}
      with_items:
        - xquartz
        - powershell
        - google-cloud-sdk

    - name: Install basics by .dmg
      homebrew_cask: name={{item}}
      with_items:
        - franz
        - gitter
        - boostnote


---

- hosts: localhost # hostname
  become: no
  gather_facts: no

  tasks:

    - name: Remove homebrew-cask
      homebrew: name=brew-cask state=absent

    - name: brew tap
      homebrew_tap: tap={{item}}
      with_items:
        - caskroom/cask
        - caskroom/versions

    - name: Install devtools by .dmg
      homebrew_cask: name={{item}}
      with_items:
        - xquartz
        - powershell
        - google-cloud-sdk

    - name: Install basics by .dmg
      homebrew_cask: name={{item}}
      with_items:
        - franz
        - gitter
        - boostnote
    - name: Install javas
      homebrew_cask: name={{item}}
      with_items:
        - java
        - java8


Install java via homebrew cask
Install java via homebrew cask
