ansible / ansible.builtin / v2.3.2.0-1 / module / cs_project Manages projects on Apache CloudStack based clouds. | "added in version" 2.0 of ansible.builtin" Authors: René Moser (@resmo) stableinterface | supported by communityansible.builtin.cs_project (v2.3.2.0-1) — module
pip
Install with pip install ansible==2.3.2.0.post1
Create, update, suspend, activate and remove projects.
# Create a project - local_action: module: cs_project name: web tags: - { key: admin, value: john } - { key: foo, value: bar }
# Rename a project - local_action: module: cs_project name: web display_text: my web project
# Suspend an existing project - local_action: module: cs_project name: web state: suspended
# Activate an existing project - local_action: module: cs_project name: web state: active
# Remove a project - local_action: module: cs_project name: web state: absent
name: description: - Name of the project. required: true tags: default: null description: - List of tags. Tags are a list of dictionaries having keys C(key) and C(value). - 'If you want to delete all tags, set a empty list e.g. C(tags: []).' required: false version_added: '2.2' version_added_collection: ansible.builtin state: choices: - present - absent - active - suspended default: present description: - State of the project. required: false domain: default: null description: - Domain the project is related to. required: false account: default: null description: - Account the project is related to. required: false api_key: description: - API key of the CloudStack API. - If not given, the C(CLOUDSTACK_KEY) env variable is considered. required: true type: str api_url: description: - URL of the CloudStack API e.g. https://cloud.example.com/client/api. - If not given, the C(CLOUDSTACK_ENDPOINT) env variable is considered. required: true type: str api_secret: description: - Secret key of the CloudStack API. - If not set, the C(CLOUDSTACK_SECRET) env variable is considered. required: true type: str poll_async: default: true description: - Poll async jobs until job has finished. required: false api_timeout: default: 10 description: - HTTP timeout in seconds. - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered. type: int display_text: default: null description: - Display text of the project. - If not specified, C(name) will be used as C(display_text). required: false api_http_method: choices: - get - post default: get description: - HTTP method used to query the API endpoint. - If not given, the C(CLOUDSTACK_METHOD) env variable is considered. type: str api_verify_ssl_cert: description: - Verify CA authority cert file. - If not given, the C(CLOUDSTACK_VERIFY) env variable is considered. type: str
account: description: Account the project is related to. returned: success sample: example account type: string display_text: description: Display text of the project. returned: success sample: web project type: string domain: description: Domain the project is related to. returned: success sample: example domain type: string id: description: UUID of the project. returned: success sample: 04589590-ac63-4ffc-93f5-b698b8ac38b6 type: string name: description: Name of the project. returned: success sample: web project type: string state: description: State of the project. returned: success sample: Active type: string tags: description: List of resource tags associated with the project. returned: success sample: '[ { "key": "foo", "value": "bar" } ]' type: dict