ansible-roles/ubuntu-deb-general/tasks/apt-setup.yml

21 lines
503 B
YAML

---
# First things first: install python-apt with a raw command
- name: install python-apt
raw: "apt-get update; apt-get install -y python-apt lsb-release"
when: has_apt
tags:
- pythonapt
- name: Install python-software-properties
apt: pkg=python-software-properties state=installed
when: has_apt
tags:
- pythonapt
- name: Install software-properties-common on quantal distributions
apt: pkg=software-properties-common state=installed
when: is_quantal
tags:
- pythonapt