summaryrefslogtreecommitdiffstats
path: root/molecule/archlinux-gnome/converge.yml
blob: ca98927d9e7e7c112770f8d8dcf66684906ba40a (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
- name: "Bootstrap"
  hosts: "archlinux-gnome"
  gather_facts: true
  vars:
    ansible_become_method: su
    user_public_keys:
      - "ssh-ed25519 AAAA...fMo"
      - "ssh-rsa AAAA...4I3"
    user_groups: ["wheel", "test_group"]
    ssh_public_key: "ssh-ed25519 AAAA...fMo"
    ssh_private_key: |
      -----BEGIN OPENSSH PRIVATE KEY-----
      b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
      QyNTUxOQAAACAQ0GydCVLVXnXpzBxM6MbmRIDHNjC8dqZoFHgx1PiSgQAAAJi7TmCqu05g
      qgAAAAtzc2gtZWQyNTUxOQAAACAQ0GydCVLVXnXpzBxM6MbmRIDHNjC8dqZoFHgx1PiSgQ
      AAAEBgO+cOwV2j8gNZ/EugDk+vbi0eGrK125vRcE3FOtJJMRDQbJ0JUtVedenMHEzoxuZE
      gMc2MLx2pmgUeDHU+JKBAAAAEm1vbGVjdWxlLXRlc3Qtb25seQECAw==
      -----END OPENSSH PRIVATE KEY-----
  roles:
    - role: "hostname"
    - role: "network"
    - role: "user"
    - role: "ssh"
    - role: "password_policy"
  pre_tasks:
    - name: "Update package cache"
      become: true
      ansible.builtin.package:
        update_cache: true
      async: 60
      poll: 5
      failed_when: false
      tags:
        - molecule-idempotence-notest
  tasks:
    - name: "Configure passwordless sudo for testing"
      ansible.builtin.copy:
        content: "%test_group ALL=(ALL) NOPASSWD: ALL\n"
        dest: "/etc/sudoers.d/test_group"
        mode: "0440"
        validate: 'visudo -cf %s'

- name: "Configure"
  hosts: "archlinux-gnome"
  gather_facts: true
  remote_user: "{{ username }}"
  vars:
    ansible_become_method: sudo
    locales:
      - "en_US.UTF-8 UTF-8"
    timezone: "GMT"
    wireguard_autostart_connection: ""
    gateway_enabled: true
    gateway_local_ipv4_subnet: "10.0.0.0/24"
    python_global_version: "3.13"
    python_versions:
      - "3.13"
    vimrc_repo_url: "https://git.sr.ht/~a14m/.vim"
    password_store_repo_url: "https://github.com/octocat/Spoon-Knife"
    firefox_install_browserpass: true
    firefox_install_passff: true
    awscli_profile_name: "example"
    awscli_region: "eu-central-1"
    awscli_access_key_id: "CHANGEME"
    awscli_secret_access_key: "CHANGEME"
  pre_tasks:
    - name: "Override is_chroot fact for container environment"
      ansible.builtin.set_fact:
        ansible_facts: "{{ ansible_facts | combine({'is_chroot': false}) }}"
  roles:
    - role: "locales"
    - role: "timezone"
    - role: "yay"
    - role: "font"
    - role: "which"
    - role: "logind"
    - role: "bash"
    - role: "alacritty"
    - role: "man"
    - role: "jq"
    - role: "ag"
    - role: "tcpdump"
    - role: "libheif"
    - role: "tmuxinator"
    - role: "rsync"
    - role: "gpg"
    - role: "btop"
    - role: "zoxide"
    - role: "gum"
    - role: "git"
    - role: "git-crypt"
    - role: "dotfiles"
    - role: "password_store"
    - role: "wireguard"
    - role: "vim"
    - role: "mise"
    - role: "gnome"
    - role: "gnome-calendar"
    - role: "gnome-loupe"
    - role: "gnome-papers"
    - role: "gnome-planify"
    - role: "gnome-disk-utility"
    - role: "gnome-newsflash"
    - role: "gradia"
    - role: "mpv"
    - role: "neomutt"
    - role: "go"
    - role: "python"
    - role: "rust"
    - role: "nodejs"
    - role: "docker"
    - role: "podman"
    - role: "ansible"
    - role: "claude"
    - role: "awscli"
    - role: "firefox"
    - role: "chromium"
    - role: "obsidian"
    - role: "microsoft-teams"
    - role: "steam"
    - role: "usbutils"
    - role: "nginx"
    - role: "prometheus"
    - role: "prometheus-node-exporter"
    - role: "grafana"
    - role: "bluetui"
    - role: "wlctl"
    - role: "pipewire"
    - role: "brightnessctl"
    - role: "wiremix"
    - role: "localsend"
    - role: "restic"
    - role: "ethtool"