We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Fix in #35
Sorry, something went wrong.
No branches or pull requests
Hello! Thanks for ansible-module-yandex-cloud.
I try create vm by ansible in Yandex
Install requirements
Create ansible.cfg
Create Playbook
Run ansible-playbook playbook.yml
version
The text was updated successfully, but these errors were encountered: