- name: Ensure ppas are installed
  apt_repository:
    repo: "{{ item }}"
    state: "present"
    codename: "xenial"
  with_items: "{{ ppas }}"
  become: True

- name: Update cache
  apt:
    update_cache: True
  become: True

- name: Install fun packages
  package: 
    name: "{{ item }}" 
    state: present
  with_items: "{{ packages }}"
  become: True

- name: Ensure ppas are installed
  apt_repository:
    repo: "{{ item }}"
    state: "present"
    codename: "xenial"
    update_cache: True
  with_items: "{{ ppas }}"
  become: True

- name: Install fun packages
  package: 
    name: "{{ item }}" 
    state: present
  with_items: "{{ packages }}"
  become: True

Fix cache for fun ppa
Fix cache for fun ppa
