mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-05-03 22:32:50 +00:00
Add aliases for image load/save (#303)
To be compatible with docker_image_load module add 'path' options as aliases.
This commit is contained in:
parent
aaff17fc50
commit
5b3f8a4d3d
2 changed files with 6 additions and 2 deletions
|
|
@ -22,6 +22,8 @@ options:
|
|||
- Path to image file to load.
|
||||
type: str
|
||||
required: true
|
||||
aliases:
|
||||
- path
|
||||
executable:
|
||||
description:
|
||||
- Path to C(podman) executable if it is not in the C($PATH) on the
|
||||
|
|
@ -167,7 +169,7 @@ def load(module, executable):
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
input=dict(type='str', required=True),
|
||||
input=dict(type='str', required=True, aliases=['path']),
|
||||
executable=dict(type='str', default='podman')
|
||||
),
|
||||
supports_check_mode=True,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ options:
|
|||
- Destination file to write image to.
|
||||
type: str
|
||||
required: true
|
||||
aliases:
|
||||
- path
|
||||
format:
|
||||
description:
|
||||
- Save image to docker-archive, oci-archive (see containers-transports(5)), oci-dir
|
||||
|
|
@ -116,7 +118,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
image=dict(type='str', required=True),
|
||||
compress=dict(type='bool'),
|
||||
dest=dict(type='str', required=True),
|
||||
dest=dict(type='str', required=True, aliases=['path']),
|
||||
format=dict(type='str', choices=['docker-archive', 'oci-archive', 'oci-dir', 'docker-dir']),
|
||||
multi_image_archive=dict(type='bool'),
|
||||
force=dict(type='bool', default=True),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue