intellium / intellium.rancher / 0.0.7 / module / rancher_namespace Manage Rancher Namespaces | "added in version" 0.1.0 of intellium.rancher" Authors: Cees Moerkerken (@ceesios)intellium.rancher.rancher_namespace (0.0.7) — module
Install with ansible-galaxy collection install intellium.rancher:==0.0.7
collections: - name: intellium.rancher version: 0.0.7
This module allows you to manage the lifecycle of Namespaces.
# Add namespace - name: Test create namespace intellium.rancher.rancher_namespace: state: present host: rancher.example.com token: "{{ login['token'] }}" name: "testns" description: "example" projectid: "{{ project['id'] }}" limits: cpu: "10m" memory: "256Mi" gpu: 1 requests: cpu: "1m" memory: 128Mi full_response: true validate_certs: false
host: aliases: - rancher_host description: Hostname of rancher system required: true type: str name: description: Name of namespace required: true type: str state: choices: - present - absent default: present description: absent or present type: str token: aliases: - rancher_token description: Token used for authentication required: false type: str labels: description: Labels to add required: false type: dict limits: description: limits suboptions: cpu: description: CPU limit required: false type: str gpu: description: NVIDIA GPU limit required: false type: str memory: description: Memory limit required: false type: str type: dict password: aliases: - rancher_password description: Password for user/pass login instead of token required: false type: str requests: description: requests suboptions: cpu: description: CPU Reservation required: false type: str memory: description: Memory Reservation required: false type: str type: dict username: aliases: - rancher_username description: Username for user/pass login instead of token required: false type: str projectid: description: projectid of namespace required: false type: str annotations: description: annotations required: false type: dict description: description: description of namespace required: false type: str cluster_name: aliases: - rancher_cluster description: Name of the cluster in rancher to operate on required: true type: str full_response: description: Whether to return full api response required: false type: bool validate_certs: default: true description: Verify SSL certificates required: false type: bool
full_response: description: The full API response of the last request returned: optional type: dict id: description: The ID of the namespace returned: always type: dict output: description: The complete json object returned: always type: dict