---
- name: Tap brew repos
  homebrew_tap:
    name: homebrew/cask
  tags: [darwin-business, package, homebrew, cask]

- name: Install packages by homebrew
  homebrew:
    name: 
      - mysql
      - postgresql
    update_homebrew: yes
  tags: [darwin-business, package, homebrew]

- name: Install packages by homebrew_cask
  homebrew_cask:
    name: 
      - datagrip
      - dbeaver-community
      - font-noto-sans-cjk
      - gotomeeting
      - i1profiler
      - microsoft-teams
      - plantronics-hub
      - quip
      - tripmode
      - webex-meetings
      - zoom
    update_homebrew: yes
  tags: [darwin-business, package, cask]

- name: Install packages by mas
  command: mas install {{item}}
  with_items:
    - 973213640   # MSG Viewer for Outlook
  tags: [darwin-business, package, mas]

# - name: Install rest of the apps
#   install_yourself:
#     - https://www.oracle.com/database/technologies/instant-client/macos-intel-x86-downloads.html # Oracle Instant Client
#     - https://www.oracle.com/tools/downloads/sqldev-downloads.html # Oracle SQL Developer
#     - https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software # Realtek RTL8153
---
- name: Tap brew repos
  homebrew_tap:
    name: homebrew/cask
  tags: [darwin-business, package, homebrew, cask]

- name: Install packages by homebrew
  homebrew:
    name: 
      - mysql
      - postgresql
    update_homebrew: yes
  tags: [darwin-business, package, homebrew]

- name: Install packages by homebrew_cask
  homebrew_cask:
    name: 
      - datagrip
      - dbeaver-community
      - font-noto-sans-cjk
      - gotomeeting
      - i1profiler
      - microsoft-teams
      - plantronics-hub
      - quip
      - tripmode
      - webex-meetings
      - zoom
    update_homebrew: yes
  tags: [darwin-business, package, cask]

- name: Install packages by mas
  command: mas install {{item}}
  with_items:
    - 973213640   # MSG Viewer for Outlook
  tags: [darwin-business, package, mas]

# - name: Install rest of the apps
#   install_yourself:
#     - https://www.oracle.com/database/technologies/instant-client/macos-intel-x86-downloads.html # Oracle Instant Client
#     - https://www.oracle.com/tools/downloads/sqldev-downloads.html # Oracle SQL Developer
Remove Realtek RTL8153 from darwin-business role
Remove Realtek RTL8153 from darwin-business role
