---
- name: Ensure correct Playbook repository is being used
  git_config:
    name: remote.origin.url
    repo: ~/gas-station
    scope: "local"
    value: "{{ playbooks_source_repository }}"

- name: Remove .vault_pass (if present)
  file:
    path: ~/gas-station/.vault_pass
    state: absent

- name: Remove the .desktop installer file required for automated installation on the master host
  file:
    path: ~/.config/autostart/ansible-installer.desktop
    state: absent

- name: Ensure base pip packages are installed
  pip:
    name: "{{ pip_base_packages }}"
    state: present
    executable: "{{ 'pip3' if ansible_system == 'Darwin' else omit }}"
