Open regatapp[bot] opened 2 years ago
Policy has been added successfully
Policy's Name: Issue 105
@regat-app workaround add adhoc -a "${labels.instance}" -h
Usage: @regat-app workaround add adhoc [options]
adding new adhoc workaround
Options:
-a, --action-name <action-name> action name for opsgenie (mandatory)
-i, --inventory <inventory> AWX inventory name (mandatory)
-c, --credential <credential> AWX credential name (mandatory)
-l, --limit <limit> target host(s) (mandatory)
-m, --module-name <module-name> module name from AWX (mandatory)
-p, --privilege-escalation module args for the adhoc (default: false)
-M, --module-args [module-args...] module args for the adhoc
-e, --extra-vars [extra-vars...] extra variables for the AWX job
-h, --help display help for command
@regat-app workaround add adhoc -a "${labels.instance}" -i "Demo Inventory" -c "Demo Credential" -l "limit" -m "ping"
Action has been added successfully.
{
"actionName": "localhost",
"credential": 1,
"credentialName": "Demo Credential",
"extraVars": [],
"inventory": 3,
"inventoryName": "Demo Inventory",
"limit": "limit",
"moduleArgs": "",
"moduleName": "ping",
"org": "Intern",
"privilegeEscalation": false,
"stringExtraVars": "",
"type": "adhoc"
}
@regat-app workaround add adhoc -a "ping to ${labels.instance}" -i "Demo Inventory" -c "Demo Credential" -l "${labels.instance}" -m "ping"
Action has been added successfully.
{
"actionName": "ping to localhost",
"credential": 1,
"credentialName": "Demo Credential",
"extraVars": [],
"inventory": 3,
"inventoryName": "Demo Inventory",
"limit": "localhost",
"moduleArgs": "",
"moduleName": "ping",
"org": "Intern",
"privilegeEscalation": false,
"stringExtraVars": "",
"type": "adhoc"
}
@regat-app workaround add adhoc -a "ping to ${labels.test}" -i "Demo Inventory" -c "Demo Credential" -l "${labels.instance}" -m "ping"
Template literal expression calls unacceptable tag/label: test
Policy's tags has been deleted successfully
Policy's tags has been updated successfully
Alert's URL
https://senseobservationsystem.app.opsgenie.com/alert/detail/5fbc6e57-1197-4c20-a965-4e6acf2f1a44-1635993855721/details
Alert's Description