summaryrefslogtreecommitdiffstats
path: root/roles/network/tasks/install-archlinux.yml
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-08-11 00:32:00 +0200
committerAhmed AbdelHalim <[email protected]>2025-08-11 00:32:00 +0200
commit5378856a4d171815e800671db07365c6e9fbf496 (patch)
tree8f0bded9360fde2cb6779d4e8cd50d41a3741c4c /roles/network/tasks/install-archlinux.yml
parent36f51ca34f718239d2618ae5d027a7d5d366f864 (diff)
Add network role
Diffstat (limited to 'roles/network/tasks/install-archlinux.yml')
-rw-r--r--roles/network/tasks/install-archlinux.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/network/tasks/install-archlinux.yml b/roles/network/tasks/install-archlinux.yml
new file mode 100644
index 00000000..94384c5a
--- /dev/null
+++ b/roles/network/tasks/install-archlinux.yml
@@ -0,0 +1,15 @@
+---
+- name: "Ensure network_packages are installed"
+ become: true
+ community.general.pacman:
+ name: "{{ network_packages }}"
+ state: "present"
+ tags: [required_for_boot]
+
+- name: "Ensrue network_packages_removed are removed"
+ become: true
+ community.general.pacman:
+ name: "{{ network_packages_removed }}"
+ state: "absent"
+ extra_args: "-n" # Removes config files too
+ # Not required for boot