aboutsummaryrefslogtreecommitdiff
path: root/tasks/preflight.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/preflight.yaml')
-rw-r--r--tasks/preflight.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/preflight.yaml b/tasks/preflight.yaml
index aef9dcf..6c67ae7 100644
--- a/tasks/preflight.yaml
+++ b/tasks/preflight.yaml
@@ -1,17 +1,17 @@
- name: ensure script is run as root
- ansible.builtin.assert:
+ assert:
that:
- ansible_effective_user_id == 0
fail_msg: "this playbook must be run as root"
- name: check if system is debian-based
- ansible.builtin.command: dpkg -l
+ command: dpkg -l
register: dpkg_check
changed_when: false
failed_when: false
- name: fail if not debian-based
- ansible.builtin.fail:
+ fail:
msg: "distribution not Debian-based"
when: dpkg_check.rc != 0