- name: install git
  community.general.pacman:
    name: git
    state:  present
  when: run_once_dev_git is not defined

- name: run the git tasks once
  set_fact:
    run_once_dev_git: true
  when: run_once_dev_git is not defined