Skip to content

Commit

Permalink
Add Ansible-core 2.16. Removed support for Ubuntu xenial and bionic
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Storvik committed May 2, 2024
1 parent 12a67cb commit 3f5b8f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This role configures the following.
Version
-------

* `4.0.0` --- Add Ansible-core 2.16. Removed support for Ubuntu xenial and bionic
* `3.3.1` --- Update meta/main.yml
* `3.3.0` --- Added support for Ubuntu 24.04
* `3.2.0` --- Added `root_keys_authorized_keys_file_owner` and `root_keys_authorized_keys_file_group`.
Expand Down Expand Up @@ -169,7 +170,7 @@ GPLv2
Author Information
------------------
* Arnulf Heimsbakk <[email protected]>
* Audun Marius Gangstø <audunmg@met.no>
Created 2020 by IT Infrastructure at MET Norway
Contactpoint: [IT Infrastructure Basis Team](mailto:it-is-basis@met.no)
###### set vim: spell spelllang=en:
3 changes: 1 addition & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ galaxy_info:

license: GPLv2

min_ansible_version: "2.12"
min_ansible_version: "2.16"

platforms:
- name: Ubuntu
versions:
- "noble"
- "jammy"
- "focal"
- "bionic"
- name: EL
versions:
- "7"
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
- name: Check if we are running supported os
ansible.builtin.assert:
fail_msg: "{{ role_name }} only supports ubuntu versions 16, 18, 20, 22, 24, centos versions 7, centos strem versions 8, rhel versions 8, 9!"
fail_msg: "{{ role_name }} only supports ubuntu versions 20, 22, 24, centos versions 7, centos strem versions 8, rhel versions 8, 9!"
success_msg: "{{ role_name }} supports {{ ansible_distribution }} version {{ ansible_distribution_version }}"
quiet: "{{ not ansible_check_mode }}"
that:
( ansible_distribution == "Ubuntu" and ansible_distribution_version|int in [16, 18, 20, 22, 24] )
( ansible_distribution == "Ubuntu" and ansible_distribution_version|int in [20, 22, 24] )
or ( ansible_distribution == "CentOS" and ansible_distribution_major_version|int in [7, 8] )
or ( ansible_distribution == "RedHat" and ansible_distribution_major_version|int in [8, 9] )
or ( ansible_distribution == "Fedora" and ansible_distribution_major_version|int in [38, 39] )
Expand Down
2 changes: 0 additions & 2 deletions tests/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Vagrant.configure("2") do |config|
{ :name => "noble", :box => "ubuntu/noble64" },
{ :name => "jammy", :box => "ubuntu/jammy64" },
{ :name => "focal", :box => "ubuntu/focal64" },
{ :name => "bionic", :box => "ubuntu/bionic64" },
{ :name => "xenial", :box => "ubuntu/xenial64" },
{ :name => "centos7", :box => "centos/7" },
{ :name => "centos8", :box => "generic/centos8s" },
{ :name => "rhel8", :box => "generic/rhel8" },
Expand Down

0 comments on commit 3f5b8f5

Please sign in to comment.