Browse Source

Update to ansible 2.0

Change-Id: I046c2ae83bb73de9478697ecc86e6929fa43aa4f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/03/279903/1
Paul Belanger 3 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 @@
13 13
 # under the License.
14 14
 ---
15 15
 - name: Restart jenkins
16
+  become: yes
16 17
   service:
17 18
     name: jenkins
18 19
     state: restarted
19
-  sudo: yes

+ 2
- 2
meta/main.yml View File

@@ -14,10 +14,10 @@
14 14
 ---
15 15
 galaxy_info:
16 16
   author: Paul Belanger
17
-  description: |
17
+  description: Ansible role to manage Jenkins
18 18
   company: Red Hat, Inc.
19 19
   license: Apache
20
-  min_ansible_version: 1.9
20
+  min_ansible_version: 2.0
21 21
   platforms:
22 22
   - name: EL
23 23
     versions:

+ 1
- 1
requirements.txt View File

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

+ 3
- 3
tasks/main.yaml View File

@@ -16,10 +16,10 @@
16 16
   include_vars: "{{ ansible_os_family }}.yaml"
17 17
 
18 18
 - include: install.yaml
19
-  sudo: yes
19
+  become: yes
20 20
 
21 21
 - include: config.yaml
22
-  sudo: yes
22
+  become: yes
23 23
 
24 24
 - include: service.yaml
25
-  sudo: yes
25
+  become: yes

+ 1
- 1
tests/test.yaml View File

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

Loading…
Cancel
Save