From c7e6a7bd504a8cb60b3af774ad45b6067ad5c860 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Mon, 5 Sep 2022 09:44:03 +0200 Subject: [PATCH] aruba: add sample playbook --- hosts | 1 + playbooks/aruba.yml | 74 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100755 playbooks/aruba.yml diff --git a/hosts b/hosts index 52f5078..7c3c07d 100644 --- a/hosts +++ b/hosts @@ -96,6 +96,7 @@ radius-fleming.adm.auro.re dns-1.int.infra.auro.re isp-1.rtr.infra.auro.re isp-2.rtr.infra.auro.re +test-1.switch.infra.auro.re dhcp-1.isp.auro.re dhcp-2.isp.auro.re radius-fleming-backup.adm.auro.re diff --git a/playbooks/aruba.yml b/playbooks/aruba.yml new file mode 100755 index 0000000..972cfa1 --- /dev/null +++ b/playbooks/aruba.yml @@ -0,0 +1,74 @@ +#!/usr/bin/env ansible-playbook +--- +- hosts: + - test-1.switch.infra.auro.re + gather_facts: false + vars: + aruba__hostname: "{{ inventory_hostname }}" + aruba__rest_enabled: true + aruba__ssh_enabled: true + aruba__ntp_servers: + - 10.128.0.1 + - 2a09:6840:128:0:1::1 + aruba__timezone: Europe/Paris + aruba__dns_servers: + - 10.128.0.1 + - 2a09:6840:128:0:1::1 + aruba__dns_domain_name: switch.infra.auro.re + aruba__manager_password: "P@ssw0rd!" + aruba__operator_password: "P@ssw0rd!" + aruba__default_gateways: + - 10.131.0.1 + - 2a09:6840:131:0:1::1 + aruba__vlans: + 131: + name: Switchs + addresses: + - 10.131.0.1/16 + - 2a09:6840:131:0:1::1/56 + 1000: + name: "Client 0" + 1001: + name: "Client 1" + 1002: + name: "Client 2" + 1003: + name: "Client 3" + 1004: + name: "Client 4" + aruba__interfaces: + 1: + name: Uplink + untagged: 131 + tagged: + - 1000 + - 1001 + - 1002 + - 1003 + - 1004 + loop_protect: true + lldp: true + 2: + name: "Client 0" + untagged: 1000 + loop_protect: true + 3: + name: "Client 1" + untagged: 1001 + loop_protect: true + 4: + name: "Client 2" + untagged: 1002 + speed: 100fdx + loop_protect: true + 5: + name: "Client 3" + untagged: 1003 + loop_protect: true + 6: + name: "Client 4" + untagged: 1004 + loop_protect: true + roles: + - aruba +...