imfreedom/ansible

Remove some old dependencies and move the mercurial dep to the role
---
- name: remove package
apt:
name:
- meson
state: absent
purge: yes
force: yes
force_apt_get: true
when: meson_install_from_pip|bool
- name: install dependencies
apt:
name:
- python3
- libpython3-dev
- python3-pip
- python3-setuptools
- gcc
state: present
force_apt_get: true
when: meson_install_from_pip|bool
- name: install meson from pip
pip:
name:
- meson
executable: pip3
state: latest # noqa 403
when: meson_install_from_pip|bool
- name: install meson from apt
apt:
name:
- meson
state: present
force_apt_get: true
when: not meson_install_from_pip|bool