aboutsummaryrefslogtreecommitdiff
path: root/tasks/preflight.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-06-24 10:29:19 +0300
committerheqnx <root@heqnx.com>2025-06-24 10:29:19 +0300
commitba4199955a0d9b273299649b67f9592b27d00617 (patch)
tree8a5c7547dbfe7cacd98e7e07ac5aa4e368be4195 /tasks/preflight.yaml
parent4d996aff99c9c31ed66f82afb11c74569ccc6763 (diff)
downloadansible-pve-host-ba4199955a0d9b273299649b67f9592b27d00617.tar.gz
ansible-pve-host-ba4199955a0d9b273299649b67f9592b27d00617.zip
added working wg setup + internal access
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