nttmcp / nttmcp.mcp / 1.0.9 / module / snapshot_migrate Migrate a server currently in preview mode to a production server | "added in version" 2.10.0 of nttmcp.mcp" Authors: Ken Sinfield (@kensinfield) preview | supported by NTT Ltd.nttmcp.mcp.snapshot_migrate (1.0.9) — module
Install with ansible-galaxy collection install nttmcp.mcp:==1.0.9
collections: - name: nttmcp.mcp version: 1.0.9
Migrate a server currently in preview mode to a production server
Refer to the Snapshot service documentation at https://docs.mcp-services.net/x/DoBk
- hosts: 127.0.0.1 connection: local collections: - nttmcp.mcp tasks: - name: Migrate (but don't wait for) a server in preview mode snapshot_preview: region: na datacenter: NA9 server: My_Preview_Server - name: Migrate a server in preview mode and wait for the completion of the migration snapshot_preview: region: na datacenter: NA9 server: My_Preview_Server wait: True
auth: description: - Optional dictionary containing the authentication and API information for Cloud Control required: false suboptions: api: description: - The Cloud Control API endpoint e.g. api-na.mcp-services.net required: false type: str api_version: description: - The Cloud Control API version e.g. 2.11 required: false type: str password: description: - The Cloud Control API user password required: false type: str username: description: - The Cloud Control API username required: false type: str type: dict name: description: - The name of the server to migrate required: true type: str wait: default: true description: - Should Ansible wait for the task to complete before continuing required: false type: bool region: default: na description: - The geographical region required: false type: str wait_time: default: 1800 description: - The maximum time the Ansible should wait for the task to complete in seconds required: false type: int datacenter: description: - The datacenter name required: true type: str network_domain: description: - The name of the Cloud Network Domain required: false type: str wait_poll_interval: default: 30 description: - The time in between checking the status of the task in seconds required: false type: int
msg: description: Message on completion returned: when wait is True sample: The Snapshot Preview server migration has successfully been deployed type: str