summaryrefslogtreecommitdiffstats
path: root/molecule/default/converge.yml
blob: 039fc920897909d0b960cdce6ac91eac3e202aae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- name: Converge
  hosts: instance
  gather_facts: true
  vars:
    ansible_become_method: su
    network_wifi_ssid: "TEST_WIFI_SSID"
    network_wifi_pass: "TEST_WIFI_PASS"
    username: test_user
    user_public_keys:
      - "ssh-ed25519 AAAA...fMo"
      - "ssh-rsa AAAA...4I3"
    user_groups: ["wheel", "test_group"]
    ssh_port: 1337
    locales:
      - "en_US.UTF-8 UTF-8"
    timezone: "GMT"
    python_global_version: "3.13"
    python_versions:
      - "3.13"
    pihole_interface: "eth0"
    pihole_domain: "pi.hole"
    wireguard_connections:
      protonvpn-example: |
        [Interface]
        PrivateKey = your_private_key_here
        Address = 10.2.0.2/32
        DNS = 10.2.0.1

        [Peer]
        PublicKey = server_public_key
        AllowedIPs = 0.0.0.0/0
        Endpoint = example.protonvpn.com:51820
  roles:
    - role: "network"
    - role: "user"
    - role: "ssh"
    - role: "password_policy"
    - role: "locales"
    - role: "timezone"
    - role: "homebrew"
    - role: "python"
    - role: "go"
    - role: "docker"
    - role: "podman"
    - role: "wireguard"
    - role: "wireguard_gateway"
    - role: "pihole"
      when:
        - lookup('ansible.builtin.env', 'MOLECULE_DISTRO') == 'ubuntu' or
          lookup('ansible.builtin.env', 'MOLECULE_DISTRO') == 'raspberrypi'