mirror of
https://github.com/roles-ansible/ansible_role_forgeo_runner.git
synced 2024-08-16 10:29:50 +02:00
17 lines
429 B
YAML
17 lines
429 B
YAML
|
---
|
||
|
- name: "Restart forgejo-runner"
|
||
|
listen: "systemctl restart forgejo-runner"
|
||
|
become: true
|
||
|
ansible.builtin.systemd:
|
||
|
name: 'forgejo-runner'
|
||
|
state: 'restarted'
|
||
|
when: ansible_service_mgr == "systemd"
|
||
|
|
||
|
- name: "Reload systemd"
|
||
|
listen: 'systemctl daemon-reload'
|
||
|
become: true
|
||
|
ansible.builtin.systemd:
|
||
|
daemon_reload: true
|
||
|
when: ansible_service_mgr == "systemd"
|
||
|
notify: 'systemctl restart forgejo-runner'
|