Merge of RedHatGov/product-demos (#56)
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>
This commit is contained in:
@@ -1,22 +1,27 @@
|
||||
---
|
||||
- name: Windows updates
|
||||
hosts: "{{ HOSTS | default('os_windows') }}"
|
||||
hosts: "{{ _hosts | default('os_windows') }}"
|
||||
vars:
|
||||
report_server: win1
|
||||
|
||||
|
||||
tasks:
|
||||
- include_role:
|
||||
name: demo.patching.patch_windows
|
||||
- name: Patch windows server
|
||||
ansible.builtin.include_role:
|
||||
name: demo.patching.patch_windows
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: demo.patching.report_server
|
||||
tasks_from: iis
|
||||
- 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
|
||||
|
||||
- include_role:
|
||||
name: demo.patching.report_windows
|
||||
|
||||
- include_role:
|
||||
name: demo.patching.report_windows_patching
|
||||
delegate_to: "{{ report_server }}"
|
||||
run_once: yes
|
||||
- name: Update landing page
|
||||
ansible.builtin.include_role:
|
||||
name: demo.patching.report_server
|
||||
tasks_from: windows_landing_page
|
||||
|
||||
Reference in New Issue
Block a user