blob: 3d66282a94e49e32bd3a7d5bc25f7e4340233282 (
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
|
---
- name: "Bootstrap"
hosts: "proxmox"
gather_facts: true
vars:
ansible_become_method: su
user_public_keys:
- "ssh-ed25519 AAAA...fMo"
- "ssh-rsa AAAA...4I3"
user_groups: ["wheel", "test_group"]
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: "proxmox"
gather_facts: true
remote_user: "{{ username }}"
vars:
ansible_become_method: sudo
locales:
- "en_US.UTF-8 UTF-8"
timezone: "GMT"
vimrc_repo_url: "https://git.sr.ht/~a14m/.vim"
password_store_repo_url: "https://github.com/octocat/Spoon-Knife"
network_ipv4_address: "10.0.0.253"
network_ipv4_gateway: "10.0.0.1"
network_bridge_interface: "eth0"
pre_tasks:
- name: "Override is_chroot fact for container environment"
ansible.builtin.set_fact:
ansible_facts: "{{ ansible_facts | combine({'is_chroot': false}) }}"
roles:
- role: "pve"
- role: "pve-storage"
- role: "locales"
- role: "timezone"
- role: "logind"
- role: "bash"
- role: "man"
- role: "jq"
- role: "ag"
- role: "btop"
- role: "gpg"
- role: "git"
- role: "git-crypt"
- role: "dotfiles"
- role: "password_store"
- role: "vim"
- role: "restic"
- role: "proxmoxer"
- role: "ethtool"
|