{"id":34837266,"url":"https://github.com/arenadata/ansible-module-yandex-cloud","last_synced_at":"2025-12-25T16:10:19.939Z","repository":{"id":41903073,"uuid":"234034075","full_name":"arenadata/ansible-module-yandex-cloud","owner":"arenadata","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-13T10:37:20.000Z","size":127,"stargazers_count":35,"open_issues_count":7,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-13T11:35:36.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arenadata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-15T08:27:54.000Z","updated_at":"2025-05-13T10:37:25.000Z","dependencies_parsed_at":"2025-05-13T11:38:06.686Z","dependency_job_id":null,"html_url":"https://github.com/arenadata/ansible-module-yandex-cloud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arenadata/ansible-module-yandex-cloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenadata%2Fansible-module-yandex-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenadata%2Fansible-module-yandex-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenadata%2Fansible-module-yandex-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenadata%2Fansible-module-yandex-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arenadata","download_url":"https://codeload.github.com/arenadata/ansible-module-yandex-cloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenadata%2Fansible-module-yandex-cloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28032396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-25T16:08:43.608Z","updated_at":"2025-12-25T16:10:19.926Z","avatar_url":"https://github.com/arenadata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-module-yandex-cloud\n\n## Overview\n\nansible-module-yandex-cloud is a set of ansible modules that manage a yandex cloud\n\n## Try it out\n\n### Prerequisites\n\n* The \u003chttps://github.com/yandex-cloud/python-sdk\u003e module is required.\n\n### Build \u0026 Run\n\n1. pip install --user `git+https://github.com/yandex-cloud/python-sdk`\n2. git clone `https://github.com/arenadata/ansible-module-yandex-cloud`\n3. cd ansible-module-yandex-cloud\n\n## Documentation\n\n### VM managment\n\n```raw\nycc_vm:\n        Ansible module to manage (create/update/delete) virtial machines in Yandex compute cloud\n\n  * This module is maintained by The Ansible Community\nOPTIONS (= is mandatory):\n\n- assign_public_ip\n        Assign public address.\n        [Default: False]\n        type: bool\n\n- core_fraction\n        Guaranteed vCPU share\n        [Default: 100]\n        choises:\n        - 5\n        - 20\n        - 50\n        - 100\n\n        type: int\n\n- cores\n        vCPU number.\n        [Default: 2]\n        type: int\n\n- disk_size\n        Primary disk size in GB.\n        [Default: 10]\n        type: int\n\n- disk_type\n        Primary disk type.\n        [Default: hdd]\n        choises: hdd, nvme\n        type: str\n\n= folder_id\n        Virtual machine target folder id.\n\n        type: str\n\n- hostname\n        Virtual machine hostname, default same as name.\n        [Default: (null)]\n        type: str\n\n- image_id\n        Boot image id.\n        Required with `state=present'.\n        [Default: (null)]\n        type: str\n\n- login\n        User to create on virtual machine, required for linux instances.\n        Required together with `public_ssh_key'.\n        Required with `state=present', mutually exclusive with `metadata'.\n        [Default: (null)]\n        type: str\n\n- max_retries\n        Max retries to proceed operation/state.\n        [Default: 5]\n        type: int\n\n- memory\n        RAM size, GB.\n        [Default: 2]\n        type: int\n\n- metadata\n        Metadata to be translate to vm.\n        [Default: (null)]\n        type: dict\n\n= name\n        Virtual machine name - must be unique throw all folders of cloud.\n\n        type: str\n\n- operation\n        stop, start, get_info or get_subnet_info.\n        Mutually exclusive with `state'.\n        [Default: (null)]\n        choises: start, stop, get_info, get_subnet_info, update\n\n- platform_id\n        Platform id.\n        [Default: Intel Broadwell.]\n        choises: Intel Cascade Lake, Intel Broadwell\n        type: str\n\n- preemptible\n        Create preemtible(may be stopped after working 24h a row) vm.\n        [Default: False]\n        type: bool\n\n- public_ssh_key\n        Created user`s openssh public key.\n        Required together with `public_ssh_key'.\n        Required with `state=present', mutually exclusive with `metadata'.\n        [Default: (null)]\n        type: str\n\n- retry_multiplayer\n        Retry multiplayer between retries to proceed operation/state\n        (wait retry_multiplayer*curent_retry seconds)\n        [Default: 2]\n        type: int\n\n- secondary_disks_spec\n        Additional disk configuration spec.\n        [Default: (null)]\n        type: list\n\n- state\n        VM state.\n        Mutually exclusive with `operation'.\n        (Choices: present, absent)[Default: (null)]\n        type: str\n\n- subnet_id\n        Network id.\n        Required with `state=present'\n        [Default: (null)]\n\n- secondary_subnet_id\n        Network id for creation secondary NIC.\n        Please note that such options as assign_public_ip, assign_internal_ip, fqdn does not affect to secondary NIC.\n        The security_groups option will apply to both interfaces.\n        [Default: (null)]\n\n= token\n        Oauth token to access cloud.\n\n        type: str\n\n- zone_id\n        Availability zone id.\n        [Default: ru-central1-a]\n        choises: ru-central1-a, ru-central1-b, ru-central1-c\n        type: str\n\n\nAUTHOR: Rotaru Sergey (rsv@arenadata.io)\n        METADATA:\n          status:\n          - preview\n          supported_by: community\n\n\nEXAMPLES:\n\n- name: Create vm\n  ycc_vm:\n    token: {{ my_token }}\n    name: my_vm\n    login: john_doe\n    public_ssh_key: john_doe_public_key\n    hostname: my_vm\n    zone_id: ru-central1-a\n    folder_id: b1gotqhf076hh183dn\n    platform_id: \"Intel Cascade Lake\"\n    core_fraction: 100\n    cores: 2\n    memory: 2\n    image_id: fd84uob96bu79jk8fqht\n    disk_type: nvme\n    disk_size: 50\n    secondary_disks_spec:\n        - autodelete: true\n          description: disk1\n          type: nvme\n          size: 10\n        - autodelete: false\n          description: disk2\n          type: hdd\n          size: 100\n    subnet_id: b0cccg656k0nixi92a\n    secondary_subnet_id: e2l3dk5nid5fdegfthu4\n    assign_public_ip: false\n    preemptible: true\n    metadata:\n        user-data: \"cloud init format in str\"\n    state: present\n\n- name: Stop vm\n  ycc_vm:\n    token: {{ my_token }}\n    name: my_tyni_vm\n    operation: stop\n\n- name: Start vm\n  ycc_vm:\n    token: {{ my_token }}\n    name: my_tyni_vm\n    operation: start\n\n\nRETURN VALUES:\n\noriginal_message:\n    description: The original name param that was passed in\n    type: str\n    returned: always\nmessage:\n    description: The output message that the test module generates\n    type: str\n    returned: always\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farenadata%2Fansible-module-yandex-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farenadata%2Fansible-module-yandex-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farenadata%2Fansible-module-yandex-cloud/lists"}