arenadata / ansible-module-yandex-cloud Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hello! Thanks for ansible module for create instance.
Do you support idea for migration repository to Ansible Collections ?
Thanks.
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
Can you remove the issue please, it was meant for https://github.com/rodion-goritskov/yacloud_compute/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.