Open mufqiuwais opened 2 years ago
@regat-app workaround add adhoc -a "test adhoc action" -i "Demo Inventory" -c "Demo Credential" -l "localhost" -m "ping" -M cmd="test=true" args2=val2 -e key1="test=value1" key2=eaga --help
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 "test adhoc action" -i "Demo Inventory" -c "Demo Credential" -l "localhost" -m "ping" -M cmd="test=true" args2=val2 -e key1="test=value1" key2=eaga -p
Action has been added successfully.
{"parameters":[{"key":"key1","value":"test=value1"},{"key":"key2","value":"eaga"}],"stringParameters":"key1=\"test=value1\" key2=eaga","module_args":"cmd=\"test=true\" args2=val2","actionName":"test adhoc action","type":"adhoc","inventoryName":"Demo Inventory","limit":"localhost","credentialName":"Demo Credential","org":"Intern","module_name":"ping","privilegeEscalation":true,"inventory":3,"credential":1}
@regat-app workaround add --help
Usage: @regat-app workaround add [command] [options]
adding new workaround
Options:
-h, --help display help for command
Commands:
adhoc [options] adding new adhoc workaround
jobTemplate [options] adding new job template workaround
help [command] display help for command
@regat-app workaround add adhoc --help
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 jobTemplate --help
Usage: @regat-app workaround add jobTemplate [options]
adding new job template workaround
Options:
-a, --action-name <action-name> action name for opsgenie (mandatory)
-T, --template-id <template-id> template id from AWX (mandatory)
-e, --extra-vars [extra-vars...] extra variables for the AWX job
-h, --help display help for command