Code Monkey home page Code Monkey logo

ansible-module-yandex-cloud's People

Contributors

eddyredline avatar gklepach avatar ilychevad avatar julya935 avatar maunty avatar mooncube avatar petrenkoas83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-module-yandex-cloud's Issues

Unsupported parameters for (ycc_vm) module: token

Hello! Thanks for ansible-module-yandex-cloud.
I try create vm by ansible in Yandex

Install requirements

pip install --user git+https://github.com/yandex-cloud/python-sdk
git clone https://github.com/arenadata/ansible-module-yandex-cloud
cd ansible-module-yandex-cloud

Create ansible.cfg

[defaults]
library = ./modules
module_utils = ./module_utils

Create Playbook

---
- name: Yandex Test Playbook
  hosts: localhost
  tasks:
    - name: Create vm
      ycc_vm:
        token: "xxxx"
        name: my_vm
        login: john_doe
        public_ssh_key: ssh-rsa xxxx
        hostname: my_vm
        zone_id: ru-central1-c
        folder_id: xxxxx
        platform_id: "Intel Cascade Lake"
        core_fraction: 100
        cores: 2
        memory: 2
        image_id: fd8anitv6eua45627i0e
        disk_type: ssd
        disk_size: 50
        secondary_disks_spec:
          - autodelete: true
            description: disk1
            type: nvme
            size: 10
          - autodelete: false
            description: disk2
            type: hdd
            size: 100
        subnet_id: xxxx
        assign_public_ip: false
        preemptible: true
#        metadata:
#          user-data: "cloud init format in str"
        state: present

Run ansible-playbook playbook.yml

PLAY [Yandex Test Playbook] ************************************************************************************************************************************************************

TASK [Gathering Facts] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [Create vm] ***********************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ycc_vm) module: token. Supported parameters include: disk_size, public_ssh_key, secondary_disks_spec, core_fraction, assign_internal_ip, disk_type, metadata, assign_public_ip, active_operations_limit_timeout, hostname, snapshot_id, auth, platform_id, subnet_id, labels, login, name, state, preemptible, cores, image_folder, folder_id, fqdn, memory, zone_id, image_family, image_id, operation."}

PLAY RECAP *****************************************************************************************************************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

version

ansible [core 2.12.4]
  config file = /home/user/ansible-module-yandex-cloud/ansible.cfg
  configured module search path = ['/home/user/ansible-module-yandex-cloud/modules']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
  jinja version = 3.1.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.