Server

Example

    - name: Provision a server
      ionoscloudsdk.ionoscloud.server:
         datacenter: "{{ datacenter }}"
         name: "{{ name }} %02d"
         auto_increment: true
         cores: 1
         ram: 1024
         availability_zone: ZONE_1
         volume_availability_zone: ZONE_3
         volume_size: 5
         cpu_family: AMD_OPTERON
         disk_type: HDD
         image: "{{ image }}"
         image_password: "{{ password }}"
         ssh_keys:
            - "{{ ssh_public_key }}"
         location: "{{ location }}"
         count: 1
         assign_public_ip: true
         remove_boot_volume: true
         wait: true
         wait_timeout: "{{ timeout }}"
         state: present

    - name: Update server
      ionoscloudsdk.ionoscloud.server:
         datacenter: "{{ datacenter }}"
         instance_ids:
           - "{{ name }} 01"
         cores: 2
         ram: 2048
         wait_timeout: "{{ timeout }}"
         state: update

    - name: Stop server
      ionoscloudsdk.ionoscloud.server:
         datacenter: "{{ datacenter }}"
         instance_ids:
           - "{{ name }} 01"
         wait_timeout: "{{ timeout }}"
         state: stopped

    - name: Start server
      ionoscloudsdk.ionoscloud.server:
         datacenter: "{{ datacenter }}"
         instance_ids:
           - "{{ name }} 01"
         wait_timeout: "{{ timeout }}"
         state: running

Parameter Reference

The following parameters are supported:

__

Last updated