Browse Source

Update to ansible 2.0

Change-Id: I046c2ae83bb73de9478697ecc86e6929fa43aa4f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/03/279903/1
Paul Belanger 4 years ago
parent
commit
17c8dcedea
5 changed files with 8 additions and 8 deletions
  1. +1
    -1
      handlers/main.yaml
  2. +2
    -2
      meta/main.yml
  3. +1
    -1
      requirements.txt
  4. +3
    -3
      tasks/main.yaml
  5. +1
    -1
      tests/test.yaml

+ 1
- 1
handlers/main.yaml View File

@@ -13,7 +13,7 @@
# under the License.
---
- name: Restart jenkins
become: yes
service:
name: jenkins
state: restarted
sudo: yes

+ 2
- 2
meta/main.yml View File

@@ -14,10 +14,10 @@
---
galaxy_info:
author: Paul Belanger
description: |
description: Ansible role to manage Jenkins
company: Red Hat, Inc.
license: Apache
min_ansible_version: 1.9
min_ansible_version: 2.0
platforms:
- name: EL
versions:

+ 1
- 1
requirements.txt View File

@@ -1 +1 @@
ansible
ansible>=2.0.0

+ 3
- 3
tasks/main.yaml View File

@@ -16,10 +16,10 @@
include_vars: "{{ ansible_os_family }}.yaml"

- include: install.yaml
sudo: yes
become: yes

- include: config.yaml
sudo: yes
become: yes

- include: service.yaml
sudo: yes
become: yes

+ 1
- 1
tests/test.yaml View File

@@ -13,7 +13,7 @@
# under the License.
---
- hosts: localhost
sudo: yes
become: yes
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"


Loading…
Cancel
Save