From 8a821060a39c32fd94d1f9ae181cc54f38a31ff7 Mon Sep 17 00:00:00 2001
From: Matthew Mosesohn <mmosesohn@mirantis.com>
Date: Wed, 18 Jan 2017 17:48:21 +0300
Subject: [PATCH] Update Ansible to 2.2.1

---
 .gitlab-ci.yml              | 4 ++--
 requirements.txt            | 2 +-
 roles/docker/tasks/main.yml | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf5684112..68b0955b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ variables:
 # us-west1-a
 
 before_script:
-    - pip install ansible
+    - pip install ansible==2.2.1.0
     - pip install netaddr
     - pip install apache-libcloud==0.20.1
     - pip install boto==2.9.0
@@ -66,7 +66,7 @@ before_script:
   stage: deploy-gce
   before_script:
     - docker info
-    - pip install ansible==2.1.3.0
+    - pip install ansible==2.2.1.0
     - pip install netaddr
     - pip install apache-libcloud==0.20.1
     - pip install boto==2.9.0
diff --git a/requirements.txt b/requirements.txt
index 74b24ce8c..6fd09e6c7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,2 @@
-ansible
+ansible>=2.2.1
 netaddr
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index cda74d29b..ead201408 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -69,7 +69,7 @@
   when: (not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]) and (docker_package_info.pkgs|length > 0)
 
 - name: check minimum docker version for docker_dns mode. You need at least docker version >= 1.12 for resolvconf_mode=docker_dns
-  shell: docker version -f "{{ '{{' }}.Client.Version{{ '}}' }}"
+  raw: docker version -f "{{ '{{' }}.Client.Version{{ '}}' }}"
   register: docker_version
   failed_when: docker_version.stdout|version_compare('1.12', '<')
   changed_when: false
-- 
GitLab