Skip to content

Commit

Permalink
Bump min_ansible_version
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Apr 7, 2022
1 parent 6c16840 commit 812bb9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ jobs:
matrix:
include:
- distro: debian8
ansible-version: '<2.10'
- distro: debian9
- distro: debian10
- distro: ubuntu1604
ansible-version: '>=2.8, <2.9'
- distro: ubuntu1604
ansible-version: '>=2.9, <2.10'
- distro: ubuntu1604
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ galaxy_info:
company: Oefenweb.nl B.V.
description: Set up (the latest or a specific version of) Go in Debian-like systems
license: MIT
min_ansible_version: 2.8.0
min_ansible_version: 2.9.0
platforms:
- name: Ubuntu
versions:
Expand Down
6 changes: 4 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# tasks file
---
- name: get (current) version
command: "{{ go_version_command }}"
command: >
{{ go_version_command }}
register: _get_current_version
changed_when: false
failed_when: false
Expand Down Expand Up @@ -71,7 +72,8 @@
- go-configure-environment

- name: check (installed) version
command: "{{ go_version_command }}"
command: >
{{ go_version_command }}
register: _get_installed_version
failed_when: "_get_installed_version.stdout | default('') != go_version"
changed_when: false
Expand Down

0 comments on commit 812bb9c

Please sign in to comment.