[CORD-1481]
Update Ansible and docker-compose
Change-Id: Ifc48827de42a1677d19b2826c6d1047d96a21bcf
diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml
index 6edffcb..a285b26 100644
--- a/roles/ansible/tasks/main.yml
+++ b/roles/ansible/tasks/main.yml
@@ -1,3 +1,5 @@
+---
+
- name: "Install apt dependencies"
become: yes
apt:
@@ -10,21 +12,17 @@
- libssl-dev
- sshpass
-- name: "Install Ansible via pip"
- pip: name=ansible version=2.2.2.0
+- name: Ansible APT Repository
become: yes
+ apt_repository:
+ repo: "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}"
+ register: result
+ until: result | success
+ retries: 3
+ delay: 10
-# - name: Ansible Repository
-# become: yes
-# apt_repository:
-# repo: "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}"
-# register: result
-# until: result | success
-# retries: 3
-# delay: 10
-
-# - name: Ensure Ansible
-# become: yes
-# apt:
-# name=ansible=2.2.*
-# state=present
+- name: Install Ansible using APT
+ become: yes
+ apt:
+ name: ansible=2.3*
+ state: present