blob: ef70c5c9953e4ce11b86c4b20921db12c3736249 [file] [log] [blame]
Sapan Bhatia2adaaaf2017-04-13 19:41:53 -07001- name: "Install apt dependencies"
David K. Bainbridgeed101542016-05-18 20:26:15 -07002 apt:
Sapan Bhatia2adaaaf2017-04-13 19:41:53 -07003 name: "{{ item }}"
4 state: present
5 with_items:
6 - python-dev
7 - libffi-dev
8 - python-pip
9 - libssl-dev
10 - sshpass
11
12- name: "Install Ansible via pip"
13 pip: name=ansible version=2.2.2.0
14 become: yes
15
16# - name: Ansible Repository
17# become: yes
18# apt_repository:
19# repo: "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}"
20# register: result
21# until: result | success
22# retries: 3
23# delay: 10
24
25# - name: Ensure Ansible
26# become: yes
27# apt:
28# name=ansible=2.2.*
29# state=present