Skip to content

Commit

Permalink
add migration message, upgrading min ansible requirement to 2.18 (#540)
Browse files Browse the repository at this point in the history
* add migration message, upgrading min ansible requirement to 2.18

* remove EOL legacy systems from CI

* remove unsuppoted distro
  • Loading branch information
artis3n authored Mar 8, 2025
1 parent ee59d52 commit ad7f514
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 114 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/pull_request_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ jobs:
matrix:
include:
- image: ghcr.io/artis3n/docker-amazonlinux2023-ansible:latest
- image: geerlingguy/docker-rockylinux8-ansible:latest
- image: geerlingguy/docker-rockylinux9-ansible:latest
- image: ghcr.io/artis3n/docker-almalinux8-ansible:latest
- image: ghcr.io/artis3n/docker-rhel8-ansible:latest
- image: ghcr.io/artis3n/docker-oraclelinux8-ansible:latest
# - image: geerlingguy/docker-rockylinux8-ansible:latest
# Temporary: until https://github.com/rocky-linux/sig-cloud-instance-images/issues/56 is resolved
# - image: geerlingguy/docker-rockylinux9-ansible:latest
# - image: ghcr.io/artis3n/docker-almalinux8-ansible:latest
# - image: ghcr.io/artis3n/docker-rhel8-ansible:latest
# - image: ghcr.io/artis3n/docker-oraclelinux8-ansible:latest
- image: geerlingguy/docker-ubuntu2404-ansible:latest
- image: ghcr.io/fkonradmain/docker-linuxmint22-ansible:latest
- image: geerlingguy/docker-ubuntu2204-ansible:latest
- image: geerlingguy/docker-ubuntu2004-ansible:latest
- image: geerlingguy/docker-ubuntu1804-ansible:latest
command: /lib/systemd/systemd
# - image: geerlingguy/docker-ubuntu2004-ansible:latest
# - image: geerlingguy/docker-ubuntu1804-ansible:latest
# command: /lib/systemd/systemd
- image: geerlingguy/docker-debian12-ansible:latest
- image: geerlingguy/docker-debian11-ansible:latest
command: /lib/systemd/systemd
- image: geerlingguy/docker-debian10-ansible:latest
command: /lib/systemd/systemd
- image: geerlingguy/docker-fedora31-ansible:latest
# - image: geerlingguy/docker-debian10-ansible:latest
# command: /lib/systemd/systemd
- image: geerlingguy/docker-fedora36-ansible:latest
- image: ghcr.io/artis3n/docker-arch-ansible:latest
- image: ghcr.io/artis3n/docker-opensuse-tumbleweed-ansible:latest
# Leap 15.6 is currently not supported by Tailscale: https://github.com/artis3n/ansible-role-tailscale/issues/480
# - image: ghcr.io/artis3n/docker-opensuse-leap-ansible:latest
# command: /lib/systemd/systemd
- image: ghcr.io/artis3n/docker-opensuse-leap-ansible:latest
command: /lib/systemd/systemd

uses: ./.github/workflows/molecule.yml
with:
Expand All @@ -55,23 +55,23 @@ jobs:
tailscale_key: ${{ secrets.TAILSCALE_CI_KEY }}

# Systems that aren't working with cgroups v2 on ubuntu 22.04, but works on ubuntu 20.04
molecule-legacy:
name: "Test Legacy Distros"
strategy:
fail-fast: false
matrix:
include:
- image: ghcr.io/artis3n/docker-amazonlinux2-ansible:latest
command: /usr/lib/systemd/systemd

uses: ./.github/workflows/molecule.yml
with:
image: ${{ matrix.image }}
command: ${{ matrix.command }}
scenario: 'default'
runner: ubuntu-20.04
secrets:
tailscale_key: ${{ secrets.TAILSCALE_CI_KEY }}
# molecule-legacy:
# name: "Test Legacy Distros"
# strategy:
# fail-fast: false
# matrix:
# include:
# - image: ghcr.io/artis3n/docker-amazonlinux2-ansible:latest
# command: /usr/lib/systemd/systemd
#
# uses: ./.github/workflows/molecule.yml
# with:
# image: ${{ matrix.image }}
# command: ${{ matrix.command }}
# scenario: 'default'
# runner: ubuntu-20.04
# secrets:
# tailscale_key: ${{ secrets.TAILSCALE_CI_KEY }}

molecule-state-absent:
name: "Run Molecule Scenario: state-absent"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
.*vault-pass
.dccache
.DS_Store
.ansible
__pycache__
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Ansible Role](https://img.shields.io/ansible/role/d/artis3n/tailscale)](https://galaxy.ansible.com/ui/standalone/roles/artis3n/tailscale/)
[![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/artis3n/ansible-role-tailscale?include_prereleases)](https://github.com/artis3n/ansible-role-tailscale/releases)
[![Molecule Tests](https://github.com/artis3n/ansible-role-tailscale/actions/workflows/pull_request_target.yml/badge.svg)](https://github.com/artis3n/ansible-role-tailscale/actions/workflows/pull_request_target.yml)
[![Codespaces Prebuilds](https://github.com/artis3n/ansible-role-tailscale/actions/workflows/codespaces/create_codespaces_prebuilds/badge.svg)](https://github.com/artis3n/ansible-role-tailscale/actions/workflows/codespaces/create_codespaces_prebuilds)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6312/badge)](https://bestpractices.coreinfrastructure.org/projects/6312)
![GitHub last commit](https://img.shields.io/github/last-commit/artis3n/ansible-role-tailscale)
![GitHub](https://img.shields.io/github/license/artis3n/ansible-role-tailscale)
Expand All @@ -14,6 +13,14 @@

This role installs and configures [Tailscale][] on a Linux target.

> [!IMPORTANT]
> **This standalone role has been migrated into a collection (<https://github.com/artis3n/ansible-collection-tailscale>).**
>
> This role will continue to function but future development work will focus on the collection.
> Please try out the collection and provide feedback on the new repo.
>
> `ansible-galaxy collection install artis3n.tailscale`
Supported operating systems:
- Debian / Ubuntu
- CentOS / RedHat
Expand Down
11 changes: 11 additions & 0 deletions filter_plugins/warn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from ansible.utils.display import Display


class FilterModule(object):
def filters(self): return {'print_warn': self.warn_filter}

def warn_filter(self, message, **kwargs):
lines = message.splitlines()
for line in lines:
Display().warning(line)
return message
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ galaxy_info:
description: Install and enable a Tailscale node.
license: license (MIT)

min_ansible_version: "2.12"
min_ansible_version: "2.18"

# Find supported platforms on https://galaxy.ansible.com/api/v1/platforms/
platforms:
Expand Down
Loading

0 comments on commit ad7f514

Please sign in to comment.