Ondřej Ezr
2020-03-11 0dfc026596fbc7cb5d0c73a884b424b523dca7e4
commit | author | age
674e35 1 ---
MTM 2 - name: Step 004 Environment specific Software
3   hosts: localhost
4   gather_facts: False
5   become: false
6   tasks:
7     - debug:
8         msg: "Software tasks Started"
0dfc02 9
674e35 10 - name: Configuring satellite Hosts
MTM 11   hosts: satellites
12   become: True
13   gather_facts: True
0dfc02 14   tasks:
OE 15
16     - import_role:
17         name: satellite-public-hostname
18
19     - when: install_satellite
20       include_role:
21         name: "{{ _role }}"
22       loop_control:
23         loop_var: _role
24       loop:
25         - satellite-installation
26         # - satellite-hammer-cli
27
28     - when: configure_satellite
29       include_role:
30         name: "{{ _role }}"
31       loop_control:
32         loop_var: _role
33       loop:
34         - satellite-manage-organization
35         - satellite-manage-manifest
36         - satellite-manage-subscription
37         - satellite-manage-sync
38         # - satellite-manage-lifecycle
39         # - satellite-manage-content-view
40         # - satellite-manage-activationkey
41         # - satellite-manage-capsule-certificate
42
43
674e35 44 - name: Configuring capsule Hosts
MTM 45   hosts: capsules
46   become: True
47   gather_facts: True
48   roles:
d1dc2b 49     - { role: "satellite-public-hostname" }
0dfc02 50     # - { role: "satellite-capsule-installation",   when: install_capsule }
OE 51     # - { role: "satellite-capsule-configuration",  when: configure_capsule }
674e35 52
0dfc02 53
674e35 54
MTM 55 - name: Software flight-check
56   hosts: localhost
57   connection: local
58   gather_facts: false
59   become: false
60   tags:
61     - post_flight_check
62   tasks:
63     - debug:
64         msg: "Software checks completed successfully"