add tag handling

This commit is contained in:
2026-03-04 19:32:57 +01:00
parent 6ebeaf01dd
commit 352c94c173
2 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html
---
- name: create runner user
tags: [install]
ansible.builtin.user:
name: "{{ RUNNER_USER }}"
create_home: yes
@@ -13,6 +14,7 @@
home: "{{ RUNNER_DIR }}"
- name: download runner
tags: [install]
delegate_to: localhost
run_once: true
ansible.builtin.get_url:
@@ -21,6 +23,7 @@
mode: '0440'
- name: copy runner binary
tags: [install]
copy:
src: "{{ RUNNER_DOWNLOAD_DIR }}/{{ RUNNER_NAME }}"
dest: "{{ RUNNER_DIR }}/{{ RUNNER_NAME }}"
@@ -29,6 +32,7 @@
mode: '0770'
- name: create runner config
tags: [install]
ansible.builtin.template:
src: config.yml.j2
dest: "{{ RUNNER_DIR }}/config.yml"
@@ -37,6 +41,7 @@
mode: '0660'
- name: create runner service file
tags: [install]
notify: reload daemons
ansible.builtin.template:
src: runner.service.j2