add system roles playbook
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
---
|
---
|
||||||
collections:
|
collections:
|
||||||
- ansible.controller
|
- ansible.controller:4.1.1
|
||||||
- redhat_cop.controller_configuration
|
- redhat_cop.controller_configuration
|
||||||
#linux
|
#linux
|
||||||
- redhat.insights
|
- redhat.insights
|
||||||
|
- redhat.rhel_system_roles
|
||||||
- community.general
|
- community.general
|
||||||
- containers.podman
|
- containers.podman
|
||||||
@@ -216,6 +216,31 @@ controller_templates:
|
|||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
|
survey:
|
||||||
|
name: ''
|
||||||
|
description: ''
|
||||||
|
spec:
|
||||||
|
- question_name: Server Name or Pattern
|
||||||
|
type: text
|
||||||
|
variable: HOSTS
|
||||||
|
required: true
|
||||||
|
- question_name: Web Page Message
|
||||||
|
type: textarea
|
||||||
|
variable: message
|
||||||
|
required: true
|
||||||
|
- name: "LINUX / System Roles"
|
||||||
|
job_type: run
|
||||||
|
inventory: "Workshop Inventory"
|
||||||
|
project: "Ansible official demo project"
|
||||||
|
playbook: "linux/system_roles.yml"
|
||||||
|
execution_environment: Default execution environment
|
||||||
|
diff_mode: yes
|
||||||
|
ask_job_type_on_launch: yes
|
||||||
|
extra_vars:
|
||||||
|
system_roles: undef
|
||||||
|
credentials:
|
||||||
|
- "Workshop Credential"
|
||||||
|
survey_enabled: true
|
||||||
survey:
|
survey:
|
||||||
name: ''
|
name: ''
|
||||||
description: ''
|
description: ''
|
||||||
|
|||||||
13
linux/system_roles.yml
Normal file
13
linux/system_roles.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: Apply RHEL System Roles
|
||||||
|
hosts: "{{ HOSTS }}"
|
||||||
|
vars:
|
||||||
|
system_roles: undef
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Apply System Roles
|
||||||
|
include_role:
|
||||||
|
name: "redhat_cop.controller_configuration.{{ item }}"
|
||||||
|
loop: "{{ system_roles }}"
|
||||||
|
when:
|
||||||
|
- system_roles | d("") | length > 0
|
||||||
Reference in New Issue
Block a user