mgdis.ovh.instance (0.1.2) — module

| "added in version" 0.1.0 of mgdis.ovh"

Authors: unknown

Install collection

Install with ansible-galaxy collection install mgdis.ovh:==0.1.2


Add to requirements.yml

  collections:
    - name: mgdis.ovh
      version: 0.1.2

Description

This module creates or deletes an OVH public cloud instance


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Instance installation
  mgdis.ovh.instance:
    service_name: abcdefghijklmnopqrstuvwxyz012345
    name: myInstance
    ssh_key_name: test
    networks: "{{ networks }}"
    flavor_name: b2-7
    region: GRA9
    image_name: "Centos 7"

Inputs

    
name:
    description:
    - The name of the instance to create
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - The state of the instance
    type: str

region:
    description:
    - The region where to deploy the instance
    required: true
    type: str

networks:
    description:
    - Networks to attach to the instance
    required: false
    type: list

image_name:
    description:
    - The image or snapshot name to look for
    required: true
    type: str

flavor_name:
    description:
    - The flavor name which can be found on the OVH docs (t1-45, b2-7 etc)
    required: true
    type: str

service_name:
    description:
    - The OVH service name.
    - It is equal to the ID of the project in the OVH portal
    required: true
    type: str

ssh_key_name:
    description:
    - The name of the ssh key used for the ssh connection
    required: false
    type: str

monthly_billing:
    default: false
    description:
    - Define is the instance should be created with monthly billing
    - If true, it cannot be changed afterwards
    type: bool