- name: install git
  community.general.pacman:
    name: git
    state: present
  become: true

- name: "pkgmgr install"
  include_role:
    name: pkgmgr-install
  vars:
    package_name: gitconfig

- name: setup git
  command: gitconfig --merge-option rebase --name "{{users.client.full_name}}" --email "{{users.client.email}}" --website "{{users.client.website}}" --signing gpg --gpg-key "{{users.client.gpg}}"
  when: run_once_gitconfig is not defined
  become: false
  
- name: run the gitconfig tasks once
  set_fact:
    run_once_gitconfig: true
  when: run_once_gitconfig is not defined