cleanup
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-02-19 10:15:45 +01:00
parent a1cffe8b3e
commit 5e7650fb6e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
---
- name: Restart agent
service:
ansible.builtin.service:
name: "woodpecker-agent-{{ __woodpecker_agent_name }}"
state: "{{ woodpecker_agent_service_started | ternary('restarted', 'stopped', 'restarted') }}"
daemon_reload: True

View File

@ -1,6 +1,6 @@
---
- name: Register agent metadata
set_fact:
ansible.builtin.set_fact:
__woodpecker_agent_name: "{{ inst.name | regex_replace('[^a-z0-9]+', '-', ignorecase=True) }}"
__woodpecker_agent_volumes: "{{ inst.volumes | default(woodpecker_agent_volumes) }}"
__woodpecker_agent_cap_add: "{{ inst.cap_add | default(woodpecker_agent_cap_add) }}"

View File

@ -1,5 +1,5 @@
---
- include_tasks:
- ansible.builtin.include_tasks:
file: instance.yml
loop: "{{ woodpecker_agent_instances }}"
loop_control: