Co-authored-by: MKletz <michael.kletz.27@gmail.com> Co-authored-by: Ajay Chenampara <ajay.chenampara@gmail.com> Co-authored-by: dlemons-redhat <69318976+dlemons-redhat@users.noreply.github.com> Co-authored-by: Nicolas Leiva <nicolasleiva@gmail.com> Co-authored-by: benblasco <42140583+benblasco@users.noreply.github.com> Co-authored-by: Benjamin Blasco <bblasco@redhat.com> Co-authored-by: calvingsmith <4283930+calvingsmith@users.noreply.github.com> Co-authored-by: Calvin Smith <calvingsmith@users.noreply.github.com> Co-authored-by: Hicham Mourad <43329991+HichamMourad@users.noreply.github.com>
28 lines
791 B
YAML
28 lines
791 B
YAML
---
|
|
- name: Windows updates
|
|
hosts: "{{ _hosts | default('os_windows') }}"
|
|
vars:
|
|
report_server: win1
|
|
|
|
tasks:
|
|
- name: Patch windows server
|
|
ansible.builtin.include_role:
|
|
name: demo.patching.patch_windows
|
|
|
|
- name: Build report server
|
|
delegate_to: "{{ report_server }}"
|
|
run_once: true # noqa: run-once[task]
|
|
block:
|
|
- name: Install report server
|
|
ansible.builtin.include_role:
|
|
name: "{{ item }}"
|
|
loop:
|
|
- demo.patching.report_server
|
|
- demo.patching.report_windows
|
|
- demo.patching.report_windows_patching
|
|
|
|
- name: Update landing page
|
|
ansible.builtin.include_role:
|
|
name: demo.patching.report_server
|
|
tasks_from: windows_landing_page
|