gcspanner – Create and Delete Instances/Databases on Spanner¶
DEPRECATED¶
- Removed in Ansible
version: 2.12
- Why
Updated modules released with increased functionality
- Alternative
Use gcp_spanner_database and/or gcp_spanner_instance instead.
Synopsis¶
Create and Delete Instances/Databases on Spanner. See https://cloud.google.com/spanner/docs for an overview.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
google-auth >= 0.5.0
google-cloud-spanner >= 0.23.0
Parameters¶
Examples¶
- name: Create instance
gcspanner:
instance_id: '{{ instance_id }}'
configuration: '{{ configuration }}'
state: present
node_count: 1
- name: Create database
gcspanner:
instance_id: '{{ instance_id }}'
configuration: '{{ configuration }}'
database_name: '{{ database_name }}'
state: present
- name: Delete instance (and all databases)
- gcspanner:
instance_id: '{{ instance_id }}'
configuration: '{{ configuration }}'
state: absent
force_instance_delete: yes
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module will be removed in version 2.12. [deprecated]
For more information see DEPRECATED.
Authors¶
Tom Melendez (@supertom) <tom@supertom.com>
Hint
If you notice any issues in this documentation, you can edit this document to improve it.