ansible-roles/library/roles/deb-apt-setup/tasks/main.yml

14 lines
498 B
YAML
Raw Normal View History

---
# First things first: install the basic requirements with a raw command
- name: Install python 2 and python-apt
raw: "apt-get update; apt-get install -y python python-apt lsb-release"
tags: [ 'python', 'ansible_setup' ]
- name: Install python-software-properties
apt: pkg=python-software-properties state=present update_cache=yes cache_valid_time=3600
2020-11-17 17:34:49 +01:00
when:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_version is version_compare('14.04', '==')
tags: pythonapt