2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
# First things first: install the basic requirements with a raw command
|
2018-07-25 12:23:50 +02:00
|
|
|
- name: Install python 2 and python-apt
|
2015-05-28 11:32:57 +02:00
|
|
|
raw: "apt-get update; apt-get install -y python python-apt lsb-release"
|
2018-07-25 12:23:50 +02:00
|
|
|
tags: [ 'python', 'ansible_setup' ]
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: Install python-software-properties
|
2018-07-25 12:23:50 +02:00
|
|
|
apt: pkg=python-software-properties state=present update_cache=yes cache_valid_time=3600
|
2019-02-17 13:45:47 +01:00
|
|
|
when: is_trusty
|
2018-07-25 12:23:50 +02:00
|
|
|
tags: pythonapt
|
2015-05-28 11:32:57 +02:00
|
|
|
|