diff options
| -rw-r--r-- | bootstrap.yml | 15 | ||||
| -rw-r--r-- | configure.yml | 29 | ||||
| -rw-r--r-- | site.yml | 55 |
3 files changed, 48 insertions, 51 deletions
diff --git a/bootstrap.yml b/bootstrap.yml new file mode 100644 index 00000000..184906e8 --- /dev/null +++ b/bootstrap.yml @@ -0,0 +1,15 @@ +--- +- name: "Dev machines bootstrap" + gather_facts: true + tags: ["required_for_boot"] + hosts: + - archlinux.local + - ubuntu.local + - rpi5.local + roles: + - role: "package_cache" + - role: "hostname" + - role: "network" + - role: "user" + - role: "ssh" + - role: "password_policy" diff --git a/configure.yml b/configure.yml new file mode 100644 index 00000000..e4e8c4d6 --- /dev/null +++ b/configure.yml @@ -0,0 +1,29 @@ +--- +- name: "Dev machines configure" + gather_facts: true + hosts: + - archlinux.local + - ubuntu.local + roles: + - role: "locales" + - role: "timezone" + - role: "wireguard" + - role: "homebrew" + - role: "python" + - role: "go" + - role: "docker" + - role: "podman" + - role: "ansible" + +- name: "Raspberry Pi configure" + gather_facts: true + hosts: + - rpi5.local + become: true + roles: + - role: "locales" + - role: "timezone" + - role: "wireguard" + - role: "gateway" + - role: "wg_portal" + - role: "pihole" @@ -1,53 +1,6 @@ --- -- name: "Dev machines configure" - gather_facts: true - hosts: - - archlinux.local - - ubuntu.local - roles: - - role: "package_cache" - tags: ["required_for_boot"] - - role: "hostname" - tags: ["required_for_boot"] - - role: "network" - tags: ["required_for_boot"] - - role: "user" - tags: ["required_for_boot"] - - role: "ssh" - tags: ["required_for_boot"] - - role: "password_policy" - tags: ["required_for_boot"] - - role: "locales" - - role: "timezone" - - role: "wireguard" - - role: "homebrew" - - role: "python" - - role: "go" - - role: "docker" - - role: "podman" - - role: "ansible" +- name: "Bootstrap" + ansible.builtin.import_playbook: "bootstrap.yml" -- name: "Raspberry Pi configure" - gather_facts: true - hosts: - - rpi5.local - become: true - roles: - - role: "package_cache" - tags: ["required_for_boot"] - - role: "hostname" - tags: ["required_for_boot"] - - role: "network" - tags: ["required_for_boot"] - - role: "user" - tags: ["required_for_boot"] - - role: "ssh" - tags: ["required_for_boot"] - - role: "password_policy" - tags: ["required_for_boot"] - - role: "locales" - - role: "timezone" - - role: "wireguard" - - role: "gateway" - - role: "wg_portal" - - role: "pihole" +- name: "Configure" + ansible.builtin.import_playbook: "configure.yml" |
