- name: Ensure repos directory exists
  file:
    path="/var/repos"
    state="directory"
    mode="o+rwx"
  become: yes

- name: Update debian family system
  apt:
    upgrade: safe
    update_cache: yes
    cache_valid_time: 0
  become: yes
  when: ansible_os_family=="Debian"
  tags: test

- name: Update arch family system
  pacman:
    upgrade: yes
    update_cache: yes
  become: yes
  when: ansible_os_family=="Archlinux"
  tags: test


- name: Ensure repos directory exists
  file:
    path="/var/repos"
    state="directory"
    mode="o+rwx"
  become: yes

- name: Update debian family system
  apt:
    upgrade: safe
    update_cache: yes
    cache_valid_time: 0
  become: yes
  when: ansible_os_family=="Debian"

- name: Update arch family system
  pacman:
    upgrade: yes
    update_cache: yes
  become: yes
  when: ansible_os_family=="Archlinux"

Remove test tags from update system
Remove test tags from update system
