feat(watchguard): debut d'automation, structure tftp

This commit is contained in:
2024-09-02 07:49:56 -04:00
parent 411e3ce8cd
commit 231b1cca9f
27 changed files with 475 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
# You first need to do a few things on opnsense web interface:
# - enable ssh
# - create a nationtech user (member of admin) with an API key (system / access /users)
# - get an API key
# zJhbadKcWsdY2HM47s1yLp5givIiTln0nf5CTw81igYxvFnvq8n67Ba5/MaLMSZ4EP13wphZTfHh0Nz8
API_KEY="zJhbadKcWsdY2HM47s1yLp5givIiTln0nf5CTw81igYxvFnvq8n67Ba5/MaLMSZ4EP13wphZTfHh0Nz8"
#ansible-galaxy collection install ansible.posix
ansible-galaxy collection install ansibleguy.opnsense
ansible-playbook network-boot.yml -i 192.168.1.1, \
-e opnsense_url="https://192.168.1.1/api" \
-e api_key="${API_KEY}" \
--connection=ssh