Compare commits
4 Commits
6713c3024c
...
f6cb7f343a
Author | SHA1 | Date | |
---|---|---|---|
|
f6cb7f343a | ||
|
fd960f900f | ||
|
6152baa8ae | ||
|
676a3d16c4 |
@ -1,2 +1,15 @@
|
||||
---
|
||||
# Handlers
|
||||
- name: Reload firewalld
|
||||
ansible.builtin.systemd:
|
||||
name: firewalld
|
||||
state: reloaded
|
||||
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 }}"
|
||||
|
@ -30,14 +30,7 @@
|
||||
- openqa-vnc
|
||||
tags:
|
||||
- configure
|
||||
|
||||
- name: Reload firewalld
|
||||
ansible.builtin.systemd:
|
||||
name: firewalld
|
||||
state: reloaded
|
||||
tags:
|
||||
- configure
|
||||
ignore_errors: "{{ ansible_check_mode }}"
|
||||
notify: Reload firewalld
|
||||
|
||||
- name: Write openQA configuration file
|
||||
ansible.builtin.template:
|
||||
@ -48,19 +41,17 @@
|
||||
mode: "0444"
|
||||
loop:
|
||||
- client.conf
|
||||
- workers.conf
|
||||
- workers.ini
|
||||
tags:
|
||||
- configure
|
||||
notify: Restart openQA workers
|
||||
|
||||
- name: Start openQA workers
|
||||
- name: Start openQA cache services
|
||||
ansible.builtin.systemd:
|
||||
name: "openqa-worker@{{ item }}"
|
||||
name: "{{ 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 }}"
|
||||
loop:
|
||||
- openqa-worker-cacheservice
|
||||
- openqa-worker-cacheservice-minion
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user