From e094d6bf9e8c1fd3318a0b25006e00c36ce1dd42 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 11 Feb 2016 17:59:30 -0500 Subject: [PATCH] Add support for ansible 2.0 Change-Id: Id92a742947bc8d66203d97fc695b97b8fc033994 Signed-off-by: Paul Belanger --- meta/main.yml | 4 ++-- requirements.txt | 2 +- tasks/main.yaml | 2 +- tests/test.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index f198d38..c3c3aec 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -14,10 +14,10 @@ --- galaxy_info: author: Paul Belanger - description: | + description: Ansible role to manage Jenkins plugins 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: