From fac69bd1a3ca7c0a062b8aed45d60e5d446a3bb1 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 21 Aug 2023 21:54:45 -0300 Subject: [PATCH] Run OpenBSD from console.sh and desktop.sh --- console.sh | 3 +++ desktop.sh | 3 +++ inventories/openbsd.ini | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 inventories/openbsd.ini diff --git a/console.sh b/console.sh index e674898..d6f00a6 100755 --- a/console.sh +++ b/console.sh @@ -3,6 +3,9 @@ if [ $(uname -s) = FreeBSD ] then INVENTORY=./inventories/freebsd.ini +elif [ $(uname -s) = OpenBSD ] +then + INVENTORY=./inventories/openbsd.ini else INVENTORY=./local.ini fi diff --git a/desktop.sh b/desktop.sh index 3166a38..e242bf3 100755 --- a/desktop.sh +++ b/desktop.sh @@ -3,6 +3,9 @@ if [ $(uname -s) = FreeBSD ] then INVENTORY=./inventories/freebsd.ini +elif [ $(uname -s) = OpenBSD ] +then + INVENTORY=./inventories/openbsd.ini else INVENTORY=./local.ini fi diff --git a/inventories/openbsd.ini b/inventories/openbsd.ini new file mode 100644 index 0000000..f97cc59 --- /dev/null +++ b/inventories/openbsd.ini @@ -0,0 +1,7 @@ +[all] +localhost + +[all:vars] +ansible_connection=local +ansible_python_interpreter=/usr/local/bin/python3 +ansible_become_method=su