Compare commits

..

4 Commits

Author SHA1 Message Date
Al Bowles
f6cb7f343a
Correctly name workers.ini, move worker restart to handler 2023-02-27 21:22:12 -06:00
Al Bowles
fd960f900f
Perform firewalld reload as a handler 2023-02-27 10:07:27 -06:00
Al Bowles
6152baa8ae
Start cache services 2023-02-27 10:03:14 -06:00
Al Bowles
676a3d16c4
Move requirements file to meet convention 2023-02-19 15:23:01 -06:00
4 changed files with 22 additions and 18 deletions

View File

@ -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 }}"

View File

@ -30,14 +30,7 @@
- openqa-vnc - openqa-vnc
tags: tags:
- configure - configure
notify: Reload firewalld
- name: Reload firewalld
ansible.builtin.systemd:
name: firewalld
state: reloaded
tags:
- configure
ignore_errors: "{{ ansible_check_mode }}"
- name: Write openQA configuration file - name: Write openQA configuration file
ansible.builtin.template: ansible.builtin.template:
@ -48,19 +41,17 @@
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 - name: Start openQA cache services
ansible.builtin.systemd: ansible.builtin.systemd:
name: "openqa-worker@{{ item }}" name: "{{ item }}"
state: started state: started
enabled: true enabled: true
# range "end" parameter is exclusive, so add 1 loop:
loop: "{{ range(1, (openqa_worker_count | int + 1)) | list }}" - openqa-worker-cacheservice
tags: - openqa-worker-cacheservice-minion
- start_workers
- configure
ignore_errors: "{{ ansible_check_mode }}"
... ...