Awesome
Community Network Collection
:warning: DEPRECATED: This collection is not not actively maintained anymore.
For more information why we decided to deprecate the collection, please see this thread.
This repository contains the community.network
Ansible Collection. The collection is a part of the ansible
package and includes many network modules and plugins supported by Ansible community which are not part of more specialized community collections.
You can find documentation for this collection on the Ansible docs site.
Code of Conduct
We follow Ansible Code of Conduct in all our interactions within this project.
If you encounter abusive behavior violating the Ansible Code of Conduct, please refer to the policy violations section of the Code of Conduct for information on how to raise a complaint.
Contributing to this collection
The content of this collection is made by good people just like you, a community of individuals collaborating on making the world better through developing automation software.
We are actively accepting new contributors.
All types of contributions are very welcome.
You don't know how to start? Refer to our contribution guide!
See the Ansible Community Guide for details on contributing to Ansible.
If you're interested in becoming a maintainer of this collection, refer to the Maintainer guidelines for details.
Communication
-
Join the Ansible forum:
- Get Help: get help or help others.
- Posts tagged with 'network': subscribe to participate in network-related conversations.
- Social Spaces: gather and interact with fellow enthusiasts.
- News & Announcements: track project-wide announcements including social events.
-
The Ansible Bullhorn newsletter: used to announce releases and important changes.
For more information about communication, see the Ansible communication guide.
Tested with ansible-core
Tested with supported versions of ansible-core. Refer to the AZP test matrix for details.
Supported connections
The community network collection supports network_cli
and httpapi
connections.
Included content
Click the Content
button to see the list of content included in this collection, or check the documentation on the Ansible docs site.
Installing this collection
This collection is shipped with the ansible
package. So if you have it installed, no more action is required.
If you have a minimal installation (only Ansible Core installed) or you want to use the latest version of the collection along with the whole ansible
package, you need to install the collection from Ansible Galaxy manually with the ansible-galaxy
command-line tool:
ansible-galaxy collection install community.network
You can also include it in a requirements.yml
file and install it with ansible-galaxy collection install -r requirements.yml
, using the format:
---
collections:
- name: community.network
# If you need a specific version of the collection, you can specify like this:
# version: ...
Note that if you install the collection manually, it will not be upgraded automatically when you upgrade the ansible
package. To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install community.network --upgrade
You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax where X.Y.Z
can be any available version:
ansible-galaxy collection install community.network:==X.Y.Z
See Ansible Using collections for more details.
Using this collection
You can call modules by their Fully Qualified Collection Name (FQCN), such as community.network.a10_server
.
The following example task creates a new server load balancer object on an A10 Networks device, using the FQCN:
---
- name: Create a new server
community.network.a10_server:
host: a10.mydomain.com
username: myadmin
password: mypassword
partition: mypartition
server: test
server_ip: 192.0.2.100
server_ports:
- port_num: 8080
protocol: tcp
- port_num: 8443
protocol: TCP
Alternately, you can call modules by their short name if you list the community.network
collection in the playbook's collections
, as follows:
---
- hosts: "{{desired_inventory_group}}"
connection: local
collections:
- community.network
tasks:
- name: Create a new server
a10_server:
host: a10.mydomain.com
username: myadmin
password: mypassword
partition: mypartition
server: test
server_ip: 192.0.2.100
server_ports:
- port_num: 8080
protocol: tcp
- port_num: 8443
protocol: TCP
See Also:
- Ansible Using collections for more details.
Changelogs
See here.
Roadmap
<!-- Optional. Include the roadmap for this collection, and the proposed release/versioning strategy so users can anticipate the upgrade/update cycle. -->More information
- Ansible network resources
- Ansible Collection overview
- Ansible User guide
- Ansible Developer guide
- Ansible Community code of conduct
Licensing
GNU General Public License v3.0 or later.
See COPYING to see the full text.