/ansible-role-cloud-network

An Ansible role for managing networks on the Cloud in an agnostic cloud provider way

Apache License 2.0Apache-2.0

Ansible Cloud: Network role

An Ansible role for managing networks on the Cloud in an agnostic cloud provider way.

This role is part of the ansible-cloud broader effort.

Pre-requisites

Please refer to ansible-cloud README.md to see how to configure your system the proper way for the provide you wish to use.

Role Variables

Variable name Required Default Type Description
cloud_network_name True N/A String Name of the network
cloud_network_cidr True N/A Int CIDR of the network
cloud_network_region (Amazon only) N/A String Region where the network is
cloud_network_state False present String Should the network be present

Example

---
- hosts: localhost
  vars:
    ansible_cloud_provider: amazon
  tasks:
    - name: Create network
      include_role:
        name: cloud-network
      vars:
        cloud_network_name: ansiblecloud-testnetwork
        cloud_network_cidr: 192.168.42.0/24
        cloud_network_region: eu-west-1

License

Apache 2.0

Authors Information