summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:33:33 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:33:33 +0200
commitd3e78a37b6d907ecbfc817db6ba4c7a71f8a96c3 (patch)
tree5b11fa4f67adbabc662bd7beb5cb989def429a18 /roles/bootstrap/tasks
parentb47dfa7b43434cdd8836bf30d549af77ac4b5287 (diff)
Refactor bootstrap to have ubuntu specific tasks
Diffstat (limited to 'roles/bootstrap/tasks')
-rw-r--r--roles/bootstrap/tasks/install-ubuntu.yml (renamed from roles/bootstrap/tasks/install-debian.yml)3
-rw-r--r--roles/bootstrap/tasks/main.yml6
2 files changed, 4 insertions, 5 deletions
diff --git a/roles/bootstrap/tasks/install-debian.yml b/roles/bootstrap/tasks/install-ubuntu.yml
index 05d84e9..9e6801f 100644
--- a/roles/bootstrap/tasks/install-debian.yml
+++ b/roles/bootstrap/tasks/install-ubuntu.yml
@@ -48,8 +48,7 @@
changed_when: true
with_items:
- "apt-get update"
- - "apt-get install -y {{ bootstrap_distro.kernel_packages | join(' ') }}"
- - "apt-get install -y systemd-boot systemd-boot-efi"
+ - "apt-get install -y {{ bootstrap_distro.packages | join(' ') }}"
- name: "Run bootclt"
ansible.builtin.command:
diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml
index af5dc49..723561d 100644
--- a/roles/bootstrap/tasks/main.yml
+++ b/roles/bootstrap/tasks/main.yml
@@ -9,6 +9,6 @@
ansible.builtin.include_tasks: "install-archlinux.yml"
when: ansible_os_family == "Archlinux"
-- name: "Install debian"
- ansible.builtin.include_tasks: "install-debian.yml"
- when: ansible_os_family == "Debian"
+- name: "Install ubuntu"
+ ansible.builtin.include_tasks: "install-ubuntu.yml"
+ when: ansible_os_distribution == "Ubuntu"