ansible.builtin.scaleway_sshkey (v2.6.17) — module

Scaleway SSH keys management module

| "added in version" 2.6 of ansible.builtin"

Authors: Remy Leone (@sieben)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.6.17

Description

This module manages SSH keys on Scaleway account U(https://developer.scaleway.com)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Add SSH key"
  scaleway_sshkey:
    ssh_pub_key: "ssh-rsa AAAA..."
    state: "Present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Delete SSH key"
  scaleway_sshkey:
    ssh_pub_key: "ssh-rsa AAAA..."
    state: "absent"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Add SSH key with explicit token"
  scaleway_sshkey:
    ssh_pub_key: "ssh-rsa AAAA..."
    state: "Present"
    oauth_token: "6ecd2c9b-6f4f-44d4-a187-61a92078d08c"

Inputs

    
state:
    choices:
    - present
    - absent
    description:
    - Indicate desired state of the SSH key.
    required: true

timeout:
    default: 30
    description:
    - Timeout for API calls

base_url:
    default: https://account.scaleway.com
    description:
    - Base URL for account API

oauth_token:
    description:
    - Scaleway OAuth token.
    required: true

ssh_pub_key:
    description:
    - The public SSH key as a string to add.
    required: true

Outputs

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