Skip to content

JoannaNil/huaweicloud-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huaweicloud.huaweicloud_modules

This role includes the latest changes and bug fixes for Azure modules from the devel branch of Ansible repository. If you cannot wait for Ansible's next release, installing this role is a good choice.

Prerequisite

The usage of this playbook role assumes that you've already setup an Ansible environment for Azure. For details, please refer to Ansible tutorial Getting Started with Azure.

Installation

Install the role.

$ ansible-galaxy install huaweicloud.huaweicloud_modules

Example Playbook

- hosts: localhost
  roles:
    - { role: huaweicloud.huaweicloud_modules }
  tasks:
	- name: create a new vm
	  hwc_compute_instance:
		identity_endpoint: "https://iam.cn-north-1.myhwclouds.com/v3"
		user_name: "{{ user_name }}"
		password: "{{ password }}"
		domain_name: "{{ domain_name }}"
		project_name: "{{ project_name }}"
		region: "{{ region }}"
		log_file: "/tmp/vm.log"

		name: "{{ vm_name }}"
		image: "{{ image_id }}"
		flavor: "{{ flavor_id }}"
		networks:
		  - uuid: "{{ network_id }}"
	  register: vm 
	- name: dump the output
	  debug:
		msg: '{{ vm }}'

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages