All Projects → olgamelnichuk → ansible-vcloud

olgamelnichuk / ansible-vcloud

Licence: Apache-2.0 License
No description, website, or topics provided.

Programming Languages

shell
77523 projects
groovy
2714 projects
python
139335 projects - #7 most used programming language
Nginx
273 projects
c
50402 projects - #5 most used programming language
PHP
23972 projects - #3 most used programming language

A collection of ansible scripts to setup VMs on a vcloud (VMware vCloud Director 5.1)...

Create a vApp:

ansible-playbook -vvvv -i hosts -c ssh -e@./secret.yml -e@./create_vapp_vars_customized.yml create_vapp.yml --ask-vault-pass

secret.yml example

api_host: https://_your_vcloud_api_host_
api_user: _api_username_
api_password: _api_password_

~/.ssh/config example

Host bastion
    HostName _bastion_hostname_
    Port _bastion_port_

Host 192.168.*
    ProxyCommand ssh -A ansible@bastion -W %h:%p

setup ssh key on a vm example

ansible-playbook -i hosts -c ssh setup_ssh_key.yml --extra-vars "hosts=... key_tag=vm" --ask-pass

or

ansible-playbook -i hosts -c ssh setup_ssh_key.yml --extra-vars "hosts=... ansible_ssh_port=... key_tag=bastion" --ask-pass
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].