ansible / ansible.builtin / v2.8.11 / module / scaleway_sshkey Scaleway SSH keys management module | "added in version" 2.6 of ansible.builtin" Authors: Remy Leone (@sieben) preview | supported by communityansible.builtin.scaleway_sshkey (v2.8.11) — module
pip
Install with pip install ansible==2.8.11
This module manages SSH keys on Scaleway account U(https://developer.scaleway.com)
- name: "Add SSH key" scaleway_sshkey: ssh_pub_key: "ssh-rsa AAAA..." state: "present"
- name: "Delete SSH key" scaleway_sshkey: ssh_pub_key: "ssh-rsa AAAA..." state: "absent"
- name: "Add SSH key with explicit token" scaleway_sshkey: ssh_pub_key: "ssh-rsa AAAA..." state: "present" oauth_token: "6ecd2c9b-6f4f-44d4-a187-61a92078d08c"
state: choices: - present - absent default: present description: - Indicate desired state of the SSH key. api_url: aliases: - base_url default: https://account.scaleway.com description: - Scaleway API URL type: str api_token: aliases: - oauth_token description: - Scaleway OAuth token. required: true type: str api_timeout: aliases: - timeout default: 30 description: - HTTP timeout to Scaleway API in seconds. type: int ssh_pub_key: description: - The public SSH key as a string to add. required: true validate_certs: default: true description: - Validate SSL certs of the Scaleway API. type: bool query_parameters: default: {} description: - List of parameters passed to the query string. type: dict
data: description: This is only present when C(state=present) returned: when C(state=present) sample: ssh_public_keys: - key: ssh-rsa AAAA.... type: dict