Skip to content

Commit a9c08d7

Browse files
committed
updates for ansible 2.6 and ubuntu 18.04
1 parent f7527bb commit a9c08d7

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

tasks/main.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
---
22
- name: Install tools for adding PPA repositories
33
become: true
4-
apt: name='{{ item }}' state=latest
5-
with_items:
6-
- python-software-properties
7-
- software-properties-common
4+
apt:
5+
name: software-properties-common
6+
state: latest
87

98
- name: Install Python dependencies
109
become: true
11-
apt: name='{{ item }}' state=latest update_cache=true
12-
with_items:
13-
- libffi-dev
14-
- gcc
10+
apt:
11+
name:
12+
- libffi-dev
13+
- gcc
14+
- openssl
15+
- libssl-dev
16+
state: latest
17+
update_cache: true
1518

1619
- include: deadsnakes.yml
1720
- include: pypy.yml
@@ -52,13 +55,6 @@
5255
template: src=pip.conf
5356
dest={{ansible_env.HOME}}/.pip/pip.conf
5457

55-
- name: Install OpenSSL
56-
become: true
57-
apt: name='{{item}}'
58-
with_items:
59-
- openssl
60-
- libssl-dev
61-
6258
- name: Install pip tools
6359
pip: name='{{ item[1] }}' executable=pip{{item[0].version}}
6460
become: true

tasks/pypy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
apt_repository: repo=ppa:pypy/ppa state=present
55
when: python_dev_install_pypy
66
- name: Install PyPy
7-
apt: name={{ item }} state=latest
7+
apt:
8+
name:
9+
- pypy
10+
- pypy-dev
11+
- python-cffi
12+
state: latest
813
become: true
9-
with_items:
10-
- pypy
11-
- pypy-dev
12-
- python-cffi
1314
when: python_dev_install_pypy

0 commit comments

Comments
 (0)