diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 325ad20..637c587 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,7 @@ jobs: # - amazonlinux2 - centos8 - debian11 + - debian12 - fedora37 - rockylinux8 - ubuntu2004 diff --git a/.github/workflows/netbox.yml b/.github/workflows/netbox.yml index 739e4f8..98ecde9 100644 --- a/.github/workflows/netbox.yml +++ b/.github/workflows/netbox.yml @@ -19,25 +19,16 @@ jobs: distro: # - amazonlinux2 - centos8 - - debian10 - debian11 + - debian12 - fedora37 - rockylinux8 - ubuntu2004 - ubuntu2204 netbox: - - v3.5.0 - - v3.4.10 - - v3.3.10 - - v3.2.9 - - v3.1.11 - exclude: - - distro: debian10 - include: - - distro: debian10 - netbox: v3.1.11 - - distro: debian10 - netbox: v3.0.12 + - v3.7.0 + - v3.6.9 + - v3.5.9 services: postgres: diff --git a/README.md b/README.md index 58f2f27..da41d6c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Ansible Role: Netbox [![Netbox]( -https://img.shields.io/badge/Netbox-v3.5.0-blue)](https://github.com/netbox-community/netbox) +https://img.shields.io/badge/Netbox-v3.7.0-blue)](https://github.com/netbox-community/netbox) [![CI](https://github.com/jvoss/ansible-role-netbox/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jvoss/ansible-role-netbox/actions/workflows/ci.yml) [![Netbox](https://github.com/jvoss/ansible-role-netbox/actions/workflows/netbox.yml/badge.svg)](https://github.com/jvoss/ansible-role-netbox/actions/workflows/netbox.yml) [![Ansible Galaxy](https://img.shields.io/badge/galaxy-jvoss.netbox-blue.svg)](https://galaxy.ansible.com/jvoss/netbox) @@ -44,7 +44,7 @@ compatability information. Tested on the following platforms: * Amazon Linux 2 * CentOS 8 -* Debian Buster (up to v3.1.11) +* Debian Bookworm * Debian Bullseye * Fedora Linux 37 * Rocky Linux 8 / Red Hat Enterprise Linux (RHEL) 8.2+ @@ -54,7 +54,7 @@ Tested on the following platforms: This role will require root access (via sudo) to manage system dependencies and actions on behalf of netbox. -Supports NetBox versions 3+ +Supports NetBox versions >=3.5.9 ## Role variables diff --git a/handlers/main.yml b/handlers/main.yml index cb857ac..776cd8a 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -6,8 +6,8 @@ args: chdir: "{{ netbox_current_path }}/netbox" executable: /bin/bash - become: yes - become_method: sudo + become: true + become_method: ansible.builtin.sudo become_user: "{{ netbox_user }}" listen: restart_netbox register: config_check @@ -17,7 +17,7 @@ ansible.builtin.service: name: "{{ item }}" state: restarted - become: yes + become: true listen: restart_netbox loop: - netbox diff --git a/tasks/superusers.yml b/tasks/superusers.yml index 399d4aa..7bd0908 100644 --- a/tasks/superusers.yml +++ b/tasks/superusers.yml @@ -11,8 +11,8 @@ args: chdir: "{{ netbox_current_path }}/netbox" executable: /bin/bash - become: yes - become_method: sudo + become: true + become_method: ansible.builtin.sudo become_user: "{{ netbox_user }}" register: result loop: "{{ netbox_superusers }}" diff --git a/tasks/upgrade.yml b/tasks/upgrade.yml index 65c5406..6da1915 100644 --- a/tasks/upgrade.yml +++ b/tasks/upgrade.yml @@ -4,7 +4,7 @@ environment: PYTHON: "python{{ python_version | default(__python_version) }}" become: true - become_method: sudo + become_method: ansible.builtin.sudo become_user: "{{ netbox_user }}" notify: restart_netbox # task vs handler to trigger at specific point in run diff --git a/vars/Debian-12.yml b/vars/Debian-12.yml new file mode 100644 index 0000000..57d03a9 --- /dev/null +++ b/vars/Debian-12.yml @@ -0,0 +1,7 @@ +--- +__python_version: "3.11" +__python_packages: + - "python{{ python_version | default(__python_version) }}" + - "python3-pip" + - "python{{ python_version | default(__python_version) }}-venv" + - "python{{ python_version | default(__python_version) }}-dev"