38 lines
951 B
YAML
38 lines
951 B
YAML
---
|
|
- 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 }}"
|
|
|
|
- name: Restart openqa services
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
state: restarted
|
|
loop: "{{ openqa_services }}"
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
|
|
|
- name: Restart os-autoinst-openvswitch
|
|
ansible.builtin.systemd:
|
|
name: os-autoinst-openvswitch
|
|
state: restarted
|
|
enabled: true
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
|
|
|
- name: Restart httpd
|
|
ansible.builtin.service:
|
|
name: httpd
|
|
state: restarted
|
|
enabled: true
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
|
...
|