From 69115861d3b22365b0dd892ae53c391c3ea8b329 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Mon, 23 Mar 2020 18:02:23 +0100 Subject: [PATCH 1/2] Fix galaxy id Former-commit-id: 2cabc9348f4c311046618ddcd076f634687e8861 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ee5794..17786b1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ GitHub Actions Runner ========= - - + + From ee599808bd65e78aaf5e3e588d6aff3e5e9a3243 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Mon, 23 Mar 2020 20:35:32 +0100 Subject: [PATCH 2/2] Fix badges and one ansible lint Former-commit-id: 91fd3daadcef7e2cf9b4e135ffb17c2e97db8411 --- README.md | 16 ++++++++-------- tasks/install_runner.yml | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 17786b1..ec51906 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ GitHub Actions Runner ========= - - - - - +[![Galaxy Quality](https://img.shields.io/ansible/quality/47375?style=flat&logo=ansible)](https://galaxy.ansible.com/monolithprojects/github_actions_runner) +[![Role version](https://img.shields.io/github/v/release/MonolithProjects/ansible-github_actions_runner)](https://galaxy.ansible.com/monolithprojects/github_actions_runner) +[![Role downloads](https://img.shields.io/ansible/role/d/47375)](https://galaxy.ansible.com/monolithprojects/github_actions_runner) +[![GitHub Actions](https://github.com/MonolithProjects/ansible-github_actions_runner/workflows/molecule%20test/badge.svg?branch=master)](https://github.com/MonolithProjects/ansible-github_actions_runner/actions) +[![License](https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner)](https://github.com/MonolithProjects/ansible-github_actions_runner/blob/master/LICENSE) This role will deploy or redeploy or uninstall and register or unregister local GitHub Actions Runner (version you specified). - Requirements ------------ @@ -51,7 +50,6 @@ github_server: "https://github.com" # github_repo: "yourrepo" ``` - Example Playbook ---------------- @@ -72,6 +70,7 @@ In this example the role will deploy (or redeploy) the GitHub Actions runner ser ``` Here the GitHub Actions runners will be uninstalled, service stopped and unregistered from the GitHub. + ```yaml --- - name: GitHub Actions Runner @@ -90,6 +89,7 @@ Here the GitHub Actions runners will be uninstalled, service stopped and unregis ToDo ---- + Full Debian/Ubuntu support License @@ -100,4 +100,4 @@ MIT Author Information ------------------ -Created in 2020 by Michal Muransky \ No newline at end of file +Created in 2020 by Michal Muransky diff --git a/tasks/install_runner.yml b/tasks/install_runner.yml index 348060c..edb7e9a 100644 --- a/tasks/install_runner.yml +++ b/tasks/install_runner.yml @@ -57,6 +57,7 @@ command: "./svc.sh install" args: chdir: "{{ runner_dir }}" + when: runner_service not in services tags: - install