community / community.general / 6.6.8 / module / scaleway_function_namespace Scaleway Function namespace management | "added in version" 6.0.0 of community.general" Authors: Guillaume MARTINEZ (@Lunik)community.general.scaleway_function_namespace (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
This module manages function namespaces on Scaleway account.
- name: Create a function namespace community.general.scaleway_function_namespace: project_id: '{{ scw_project }}' state: present region: fr-par name: my-awesome-function-namespace environment_variables: MY_VAR: my_value secret_environment_variables: MY_SECRET_VAR: my_secret_value register: function_namespace_creation_task
- name: Make sure function namespace is deleted community.general.scaleway_function_namespace: project_id: '{{ scw_project }}' state: absent region: fr-par name: my-awesome-function-namespace
name: description: - Name of the function namespace. required: true type: str wait: default: true description: - Wait for the resource to reach its desired state before returning. type: bool state: choices: - present - absent default: present description: - Indicate desired state of the function namespace. type: str region: choices: - fr-par - nl-ams - pl-waw description: - Scaleway region to use (for example C(fr-par)). required: true type: str api_url: aliases: - base_url default: https://api.scaleway.com description: - Scaleway API URL. type: str api_token: aliases: - oauth_token description: - Scaleway OAuth token. required: true type: str project_id: description: - Project identifier. required: true type: str api_timeout: aliases: - timeout default: 30 description: - HTTP timeout to Scaleway API in seconds. type: int description: default: '' description: - Description of the function namespace. type: str wait_timeout: default: 300 description: - Time to wait for the resource to reach the expected state. required: false type: int validate_certs: default: true description: - Validate SSL certs of the Scaleway API. type: bool wait_sleep_time: default: 3 description: - Time to wait before every attempt to check the state of the resource. required: false type: int query_parameters: default: {} description: - List of parameters passed to the query string. type: dict environment_variables: default: {} description: - Environment variables of the function namespace. - Injected in functions at runtime. type: dict secret_environment_variables: default: {} description: - Secret environment variables of the function namespace. - Updating thoses values will not output a C(changed) state in Ansible. - Injected in functions at runtime. type: dict
function_namespace: description: The function namespace information. returned: when I(state=present) sample: description: '' environment_variables: MY_VAR: my_value error_message: null id: 531a1fd7-98d2-4a74-ad77-d398324304b8 name: my-awesome-function-namespace organization_id: e04e3bdc-015c-4514-afde-9389e9be24b0 project_id: d44cea58-dcb7-4c95-bff1-1105acb60a98 region: fr-par registry_endpoint: '' registry_namespace_id: '' secret_environment_variables: - key: MY_SECRET_VAR value: $argon2id$v=19$m=65536,t=1,p=2$tb6UwSPWx/rH5Vyxt9Ujfw$5ZlvaIjWwNDPxD9Rdght3NarJz4IETKjpvAU3mMSmFg status: pending type: dict