chore: rework cluster_services parameter
- the parameter as list didn't work wellmaster
parent
8ee702fb68
commit
7a9c8e42ae
@ -0,0 +1,41 @@
|
||||
---
|
||||
|
||||
- name: "Fetch all {{ awx_rest_api_type }} ids"
|
||||
no_log: true
|
||||
uri:
|
||||
url: "{{ awx_base_url }}/api/v2/{{ awx_rest_api_type }}/"
|
||||
method: GET
|
||||
user: "{{ awx_rest_api_access_user }}"
|
||||
password: "{{ awx_rest_api_access_pw }}"
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
Accept: "application/json"
|
||||
body_format: "json"
|
||||
force_basic_auth: true
|
||||
validate_certs: false
|
||||
status_code: 200
|
||||
register: response
|
||||
tags:
|
||||
- awx_config
|
||||
|
||||
- name: "Remove all {{ awx_rest_api_type }}"
|
||||
no_log: true
|
||||
uri:
|
||||
url: "{{ awx_base_url }}{{ item.url }}"
|
||||
method: DELETE
|
||||
user: "{{ awx_rest_api_access_user }}"
|
||||
password: "{{ awx_rest_api_access_pw }}"
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
Accept: "application/json"
|
||||
body_format: "json"
|
||||
force_basic_auth: true
|
||||
validate_certs: false
|
||||
status_code: 204
|
||||
tags:
|
||||
- awx_config
|
||||
loop: "{{ response.json.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.url }}"
|
||||
# Ignore errors due to some elements can't be deleted
|
||||
ignore_errors: true
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,14 @@
|
||||
[
|
||||
scope_id: contextScopeId,
|
||||
process_instance_id: execution.getProcessInstanceId(),
|
||||
smardigo_management_action: smardigoManagementAction,
|
||||
cluster_name: cluster.name,
|
||||
cluster_service: cluster.service,
|
||||
cluster_services_str: ([cluster.service] + execution.getVariable('connect-features')).join(','),
|
||||
cluster_size: cluster.size,
|
||||
stage: cluster.stage,
|
||||
current_realm_name: tenant.key,
|
||||
current_realm_display_name: tenant.name,
|
||||
uploaded_file: execution.getVariable('databaseBackupFilename'),
|
||||
tenant_id: tenant.key
|
||||
]
|
||||
@ -1,15 +1,18 @@
|
||||
{
|
||||
"groups" : [ {
|
||||
"id" : "user",
|
||||
"name" : "User"
|
||||
}, {
|
||||
"id" : "head",
|
||||
"name" : "Head"
|
||||
"id" : "administrator",
|
||||
"name" : "Administrator"
|
||||
}, {
|
||||
"id" : "maintainer",
|
||||
"name" : "Maintainer"
|
||||
}, {
|
||||
"id" : "administrator",
|
||||
"name" : "Administrator"
|
||||
"id" : "process-delete-approver",
|
||||
"name" : "Aussonderungsliste anzeigen und bearbeiten"
|
||||
}, {
|
||||
"id" : "process-deleter",
|
||||
"name" : "Löschen von Vorgängen"
|
||||
}, {
|
||||
"id" : "user",
|
||||
"name" : "User"
|
||||
} ]
|
||||
}
|
||||
Loading…
Reference in New Issue