summaryrefslogtreecommitdiffstats
path: root/roles/network/tasks/install-archlinux.yml
diff options
context:
space:
mode:
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