huaweicloud_ansible_modules

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 zhongjun2.huaweicloud_ansible_modules

Example Playbook

- hosts: localhost
  roles:
    - { role: zhongjun2.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 }}'

License

Apache 2.0

Install
ansible-galaxy install zhongjun2/huaweicloud-ansible-modules
GitHub repository
License
apache-2.0
Downloads
33
Owner