community / community.general / 0.1.1 / module / cs_resourcelimit Manages resource limits on Apache CloudStack based clouds. Authors: René Moser (@resmo) stableinterface | supported by communitycommunity.general.cs_resourcelimit (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manage limits of resources for domains, accounts and projects.
- name: Update a resource limit for instances of a domain cs_resourcelimit: type: instance limit: 10 domain: customers delegate_to: localhost
- name: Update a resource limit for instances of an account cs_resourcelimit: type: instance limit: 12 account: moserre domain: customers delegate_to: localhost
limit: aliases: - max default: -1 description: - Maximum number of the resource. - Default is unlimited C(-1). type: int domain: description: - Domain the resource is related to. type: str account: description: - Account the resource is related to. type: str api_key: description: - API key of the CloudStack API. - If not given, the C(CLOUDSTACK_KEY) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. 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. - As the last option, the value is taken from the ini config file, also see the notes. type: str project: description: - Name of the project the resource is related to. type: str api_region: default: cloudstack description: - Name of the ini section in the C(cloustack.ini) file. - If not given, the C(CLOUDSTACK_REGION) env variable is considered. type: str api_secret: description: - Secret key of the CloudStack API. - If not set, the C(CLOUDSTACK_SECRET) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. type: str api_timeout: description: - HTTP timeout in seconds. - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. - Fallback value is 10 seconds if not specified. type: int resource_type: aliases: - type choices: - instance - ip_address - volume - snapshot - template - network - vpc - cpu - memory - primary_storage - secondary_storage description: - Type of the resource. required: true type: str api_http_method: choices: - get - post description: - HTTP method used to query the API endpoint. - If not given, the C(CLOUDSTACK_METHOD) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. - Fallback value is C(get) if not specified. type: str
account: description: Account the resource is related to. returned: success sample: example account type: str domain: description: Domain the resource is related to. returned: success sample: example domain type: str limit: description: Maximum number of the resource. returned: success sample: -1 type: int project: description: Project the resource is related to. returned: success sample: example project type: str recource_type: description: Type of the resource returned: success sample: instance type: str