From c9c5332a3831aee8302bc6c151539704ff4ed181 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 17 Feb 2016 13:10:52 -0500 Subject: [PATCH] Support ansible 2.0 Signed-off-by: Paul Belanger --- meta/main.yml | 2 +- requirements.txt | 2 +- tasks/main.yaml | 2 +- tests/test.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index fc38ff9..f9eaeb8 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -20,7 +20,7 @@ galaxy_info: unsecured network. company: Red Hat, Inc. license: Apache - min_ansible_version: 1.9 + min_ansible_version: 2.0 platforms: - name: EL versions: diff --git a/requirements.txt b/requirements.txt index 90d4055..1ab0ddd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -ansible +ansible>=2.0.0 diff --git a/tasks/main.yaml b/tasks/main.yaml index 9da9ce3..88b796e 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -13,4 +13,4 @@ # under the License. --- - include: config.yaml - sudo: yes + become: yes diff --git a/tests/test.yaml b/tests/test.yaml index 5fa16b8..25b38b8 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -13,7 +13,7 @@ # under the License. --- - hosts: localhost - sudo: yes + become: yes vars: rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}" pre_tasks: