Correctly name workers.ini, move worker restart to handler
This commit is contained in:
parent
2c6f93ff8e
commit
69923813dd
@ -4,3 +4,12 @@
|
|||||||
name: firewalld
|
name: firewalld
|
||||||
state: reloaded
|
state: reloaded
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
|
|
||||||
|
- name: Restart openQA workers
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: "openqa-worker@{{ item }}"
|
||||||
|
state: restarted
|
||||||
|
enabled: true
|
||||||
|
# range "end" parameter is exclusive, so add 1
|
||||||
|
loop: "{{ range(1, (openqa_worker_count | int + 1)) | list }}"
|
||||||
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
|
@ -41,21 +41,10 @@
|
|||||||
mode: "0444"
|
mode: "0444"
|
||||||
loop:
|
loop:
|
||||||
- client.conf
|
- client.conf
|
||||||
- workers.conf
|
- workers.ini
|
||||||
tags:
|
tags:
|
||||||
- configure
|
- configure
|
||||||
|
notify: Restart openQA workers
|
||||||
- name: Start openQA workers
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: "openqa-worker@{{ item }}"
|
|
||||||
state: started
|
|
||||||
enabled: true
|
|
||||||
# range "end" parameter is exclusive, so add 1
|
|
||||||
loop: "{{ range(1, (openqa_worker_count | int + 1)) | list }}"
|
|
||||||
tags:
|
|
||||||
- start_workers
|
|
||||||
- configure
|
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
|
||||||
|
|
||||||
- name: Start openQA cache services
|
- name: Start openQA cache services
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
Loading…
Reference in New Issue
Block a user