diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 48f411b..1ccd795 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -40,7 +40,7 @@ Do the changes in your own GitHub namespace. 2. Install Molecule and its Docker driver with pip: ```bash -pip install molecule[docker] +pip install "molecule-plugins[docker]" ``` ### Running Tests diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index e27c954..33b5e26 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -7,7 +7,7 @@ on: jobs: release: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: galaxy uses: robertdebock/galaxy-action@1.2.1 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c54a4f1..e4f171c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,7 +9,7 @@ on: jobs: pre-commit: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d3b1a2..d9f33d2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: name: Test GHA Runner Role environment: name: test - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false max-parallel: 5 @@ -69,7 +69,7 @@ jobs: needs: repo environment: name: test - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false max-parallel: 5 diff --git a/README.md b/README.md index c8a2574..d5bb785 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ In this example the Ansible role will uninstall the runner service and unregiste 2. Install Molecule and its Docker driver with pip: ```bash -pip install molecule[docker] +pip install "molecule-plugins[docker]" ``` Sure, here's a basic example of how you might structure a README to explain how to test the `monolithprojects.github_actions_runner` Ansible role with Molecule: diff --git a/tasks/collect_info.yml b/tasks/collect_info.yml index a08bf5d..7363686 100644 --- a/tasks/collect_info.yml +++ b/tasks/collect_info.yml @@ -64,6 +64,7 @@ ansible.builtin.uri: url: "https://api.github.com/repos/{{ runner_download_repository }}/releases/latest" headers: + Authorization: "token {{ access_token }}" Content-Type: "application/json" method: GET return_content: true diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index 8c559e2..0539b5a 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -111,6 +111,18 @@ become: true when: (ansible_facts.distribution == "Ubuntu" and ansible_facts.distribution_major_version == "22") +- name: Install dependencies on Ubuntu Noble systems + ansible.builtin.package: + pkg: + - acl + - liblttng-ust1 + - libkrb5-3 + - zlib1g + state: present + update_cache: true + become: true + when: (ansible_facts.distribution == "Ubuntu" and ansible_facts.distribution_major_version == "24") + - name: Install dependencies on RHEL/CentOS/Fedora systems ansible.builtin.package: name: diff --git a/tasks/install_runner_unix.yml b/tasks/install_runner_unix.yml index b398de4..f28e633 100644 --- a/tasks/install_runner_unix.yml +++ b/tasks/install_runner_unix.yml @@ -165,7 +165,7 @@ args: chdir: "{{ runner_dir }}" changed_when: true - become: "{{ 'false' if ansible_distribution == 'MacOS' else 'true' }}" + become: "{{ 'false' if ansible_distribution == 'MacOSX' else 'true' }}" no_log: "{{ hide_sensitive_logs | bool }}" ignore_errors: "{{ ansible_check_mode }}" when: runner_state|lower == "stopped"