fix linter errors

This commit is contained in:
Sergey Malyuk
2025-12-12 14:17:20 +03:00
parent 5ac15313d8
commit db55cb16eb
20 changed files with 257 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
- name: Converge
hosts: all
roles:
- role: genlab.common.wg_spoke
iface_name: adm
subnet: "10.0.0.0"
netmask: "24"
spoke_ipv4_vpn: "10.0.0.1"
spoke_port: "51820"
spoke_pkey: eGqGx4A5ufFKatLflPFKNuzFgGuospIe08iPbTlEhm0=
hub_pubkey: EvcoZ21/p0AHz5y95jwjVIR9puljc2kXqh/f3U1A4nk=
# hub_psk: 5qmMuLuGQT7w8VnHPsZDO4vRF5wEKcpEtaCQW1BLmbg=
hub_ipv4_wan: "1.2.3.4"
hub_ipv4_vpn: "10.0.0.254"
hub_port: "51820"
dns_server: "10.0.0.254:5300"
domain: "adm.local"
wg_spoke_hide_secrets: false
wg_spoke_logging: false # doesn't work in Github Actions environment

View File

@@ -0,0 +1,27 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: ubuntu
image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest
pre_build_image: true
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
provisioner:
name: ansible
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint .

View File

@@ -0,0 +1,13 @@
---
- name: Verify
hosts: all
gather_facts: false
any_errors_fatal: true
vars:
iface_name: adm
tasks:
- name: "Check that the Wireguard service is running"
ansible.builtin.service:
name: wg-quick@{{ iface_name }}
state: started