Compare commits

..

No commits in common. "f6cb7f343ade5050f4b411bd510c2d687a05443b" and "6713c3024c92821d39c485690b1fb4daabb5a057" have entirely different histories.

4 changed files with 18 additions and 22 deletions

View File

@ -1,15 +1,2 @@
--- ---
- name: Reload firewalld # Handlers
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,7 +30,14 @@
- 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:
@ -41,17 +48,19 @@
mode: "0444" mode: "0444"
loop: loop:
- client.conf - client.conf
- workers.ini - workers.conf
tags: tags:
- configure - configure
notify: Restart openQA workers
- name: Start openQA cache services - name: Start openQA workers
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ item }}" name: "openqa-worker@{{ item }}"
state: started state: started
enabled: true enabled: true
loop: # range "end" parameter is exclusive, so add 1
- openqa-worker-cacheservice loop: "{{ range(1, (openqa_worker_count | int + 1)) | list }}"
- openqa-worker-cacheservice-minion tags:
- start_workers
- configure
ignore_errors: "{{ ansible_check_mode }}"
... ...