Add some argument aliases
This commit is contained in:
parent
67057b4675
commit
4c9f431792
1 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- "The name of the component being deployed. Ex: billing"
|
- "The name of the component being deployed. Ex: billing"
|
||||||
required: true
|
required: true
|
||||||
|
alias: name
|
||||||
version:
|
version:
|
||||||
description:
|
description:
|
||||||
- The deployment version.
|
- The deployment version.
|
||||||
|
@ -30,6 +31,7 @@ options:
|
||||||
- Name of affected host name. Can be a list.
|
- Name of affected host name. Can be a list.
|
||||||
required: false
|
required: false
|
||||||
default: machine's hostname
|
default: machine's hostname
|
||||||
|
alias: host
|
||||||
env:
|
env:
|
||||||
description:
|
description:
|
||||||
- The airbrake environment name, typically 'production', 'staging', etc.
|
- The airbrake environment name, typically 'production', 'staging', etc.
|
||||||
|
@ -93,11 +95,11 @@ def main():
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
component=dict(required=True),
|
component=dict(required=True, aliases=['name']),
|
||||||
version=dict(required=True),
|
version=dict(required=True),
|
||||||
token=dict(required=True),
|
token=dict(required=True),
|
||||||
state=dict(required=True, choices=['started', 'finished', 'failed']),
|
state=dict(required=True, choices=['started', 'finished', 'failed']),
|
||||||
hosts=dict(required=False, default=[socket.gethostname()]),
|
hosts=dict(required=False, default=[socket.gethostname()], aliases=['host']),
|
||||||
env=dict(required=False),
|
env=dict(required=False),
|
||||||
owner=dict(required=False),
|
owner=dict(required=False),
|
||||||
description=dict(required=False),
|
description=dict(required=False),
|
||||||
|
|
Loading…
Reference in a new issue