From 666fb8dfdc2a14d1b331e158d857beefd2d13293 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 30 Oct 2022 18:02:22 +0100 Subject: [PATCH] change OS detection --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6912be4..879ad6f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,7 +2,7 @@ # tasks file for ansible_bootstrap - name: detect debian - raw: uname -a|grep Debian||true + raw: at /etc/os-release|grep Debian||true register: debian - name: detect Rocky @@ -10,7 +10,7 @@ register: rocky - name: detect arch - raw: uname -a|grep arch||true + raw: cat /etc/os-release|grep Arch||true register: arch - name: "install python for rocky"