Skip to content

Commit

Permalink
added support ansible core-2.16, Removed bionic/xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
steinhj committed Apr 30, 2024
1 parent 8b68425 commit 12d64b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Role for handling `/etc/sysctl.d/*.conf` files. Applies new sysctl setting on ru
Version
-------

* `3.0.0` --- Add Unsible-core 2.16. Removed support for Ubuntu xenial and bionic
* `2.2.0` --- Add Ubuntu 24.04 noble support
* `2.1.2` --- Allow Fedora CoreOS 39
* `2.1.1` --- bug fix, ansible-lint
Expand All @@ -29,8 +30,6 @@ This role is limited to
* Ubuntu 24.04 - Noble
* Ubuntu 22.04 - Jammy
* Ubuntu 20.04 - Focal
* Ubuntu 18.04 - Bionic
* Ubuntu 16.04 - Xenial
* CentOS 7
* CentOS Stream 8
* RHEL 8
Expand Down Expand Up @@ -107,6 +106,7 @@ GPLv2
Author Information
------------------

Created 2020 by [Arnulf Heimsbakk](mailto:[email protected]) for MET Norway.
Created 2020 by IT Infrastructure at MET Norway
Contactpoint: [IT Infrastructure Basis Team](mailto:[email protected])

###### set vim: spell spelllang=en:
6 changes: 2 additions & 4 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# vim: ai et ts=2 st=2 sw=2 :
---
galaxy_info:
author: Arnulf Heimsbakk
author: IT Infrastructure at MET Norway
description: Handle sysctl.d files
company: MET Norway
role_name: sysctl
namespace: metno

license: GPLv2

min_ansible_version: "2.12"
min_ansible_version: "2.16"

platforms:
- name: Ubuntu
versions:
- "noble"
- "jammy"
- "focal"
- "bionic"
- "xenial"
- 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
Expand Up @@ -2,11 +2,11 @@
---
- name: Check if we're running supported os
ansible.builtin.assert:
fail_msg: "{{ role_name }} only supports ubuntu versions 16, 18, 20, 22, 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 stream 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|lower == "ubuntu" and ansible_distribution_version|int in [16, 18, 20, 22, 24] )
( ansible_distribution|lower == "ubuntu" and ansible_distribution_version|int in [20, 22, 24] )
or ( ansible_distribution|lower == "centos" and ansible_distribution_major_version|int in [7, 8] )
or ( ansible_distribution|lower == "redhat" and ansible_distribution_major_version|int in [8, 9] )
or ( ansible_distribution|lower == "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 12d64b8

Please sign in to comment.