Skip to content

ShiChangkuo/huaweicloud-ansible-modules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huaweicloud.huaweicloud_ansible_modules

This role includes the latest changes and bug fixes for HuaweiCloud 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 HuaweiCloud.

Installed the ansible in your environment.

Installation

Install the role.

$ ansible-galaxy install huaweicloud.huaweicloud_ansible_modules

Example Playbook

$ cat test.yml
- hosts: localhost
  roles:
    - { role: huaweicloud.huaweicloud_ansible_modules }
  tasks:
	- name: create a new vpc
	  hwc_network_vpc:
		identity_endpoint: "https://iam.cn-north-1.myhwclouds.com/v3"
		user: "{{ user_name }}"
		password: "{{ password }}"
		domain: "{{ domain_name }}"
		project: "{{ project_name }}"
		region: "{{ region }}"

		name: "{{ vpc_name }}"
		cidr: "192.168.100.0/24"
		state: present
	  register: vpc 
	- name: dump the output
	  debug:
		msg: '{{ vpc }}'

Run ansible

$ ansible-playbook test.yml

License

Apache 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%