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