summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:32:09 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:32:09 +0200
commita05655e7c239b6f8167e36b141a1a3a060128d45 (patch)
tree924ff1d654ae4aaa91add43835f07654fb99140d
parent4a0b46929b130bd539c052db359b351716bf9dd3 (diff)
Refactor: playbook to split required_for_boot into its own playbook
-rw-r--r--.ansible-lint3
-rw-r--r--site.yml33
2 files changed, 19 insertions, 17 deletions
diff --git a/.ansible-lint b/.ansible-lint
index 4124dea9..26c3c913 100644
--- a/.ansible-lint
+++ b/.ansible-lint
@@ -2,6 +2,3 @@
skip_list:
- 'yaml'
- 'role-name'
-
-warn_list:
- - 'var-naming[no-role-prefix]'
diff --git a/site.yml b/site.yml
index b362ac0e..acd37938 100644
--- a/site.yml
+++ b/site.yml
@@ -1,27 +1,32 @@
---
-- name: Distro bootstrap configure
+- name: "Distro bootstrap configure"
gather_facts: true
+ # Password policy is technically not required for boot,
+ # But it's quite nice to configure it for boot and therefore
+ # enforce the required policies/configurations wanted for the first passwrod change
+ tags: ["required_for_boot"]
hosts:
- - homelab
- - chroot
+ - archlinux.local
+ - ubuntu.local
+ - rpi5.local
roles:
+ - role: "hostname"
- role: "network"
- tags: ["required_for_boot"]
- role: "user"
- tags: ["required_for_boot"]
- role: "ssh"
- tags: ["required_for_boot"]
- role: "password_policy"
- # Password policy is technically not required for boot,
- # But it's quite nice to configure it for boot and therefore
- # enforce the required policies/configurations wanted for the first passwrod change
- tags: ["required_for_boot"]
- - role: "locales"
- - role: "timezone"
-
pre_tasks:
- name: "Update package cache"
become: true
ansible.builtin.package:
update_cache: true
- tags: ["required_for_boot"]
+
+- name: "Distro configure common roles"
+ gather_facts: true
+ hosts:
+ - archlinux.local
+ - ubuntu.local
+ - rpi5.local
+ roles:
+ - role: "locales"
+ - role: "timezone"