---
- name: Add libretro repository
  apt_repository:
    repo: 'ppa:libretro/stable'
    update_cache: yes
  become: true

- name: Install Steam system package
  apt:
    deb: 'http://repo.steampowered.com/steam/archive/precise/steam_latest.deb'
  become: true

- name: Install system packages
  apt:
    name: "{{ item }}"
    state: latest
    update_cache: yes
  with_items:
  - higan
  - libasound2-plugins:i386 # Workaround for Guild Wars 2 audio in CrossOver
  - retroarch # Additional: retroarch-* libretro-*
  become: true

- include: steam.yml


---
- name: Add libretro repository
  apt_repository:
    repo: 'ppa:libretro/stable'
    update_cache: yes
  when: ansible_distribution_release == 'xenial'
  become: true

- name: Install system packages
  apt:
    name: "{{ item }}"
    state: latest
    update_cache: yes
  with_items:
  - higan
  - libasound2-plugins:i386 # Workaround for Guild Wars 2 audio in CrossOver
  - retroarch # Additional: retroarch-* libretro-*
  when: ansible_distribution_release == 'xenial'
  become: true

- include: steam.yml


Install steam from official repo
Install steam from official repo
