From fe103f7929d4d21e0552bbbee18b13438176779d Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 5 Sep 2022 09:47:54 +0100 Subject: [PATCH] Separate local.ini for Linux/FreeBSD --- .gitignore | 1 + inventories/local-freebsd.ini | 7 +++++++ inventories/local-linux.ini | 6 ++++++ local.ini | 7 +------ 4 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 inventories/local-freebsd.ini create mode 100644 inventories/local-linux.ini mode change 100644 => 120000 local.ini diff --git a/.gitignore b/.gitignore index a8b42eb..7455aff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.retry +/local.ini diff --git a/inventories/local-freebsd.ini b/inventories/local-freebsd.ini new file mode 100644 index 0000000..0492a16 --- /dev/null +++ b/inventories/local-freebsd.ini @@ -0,0 +1,7 @@ +[all] +localhost + +[all:vars] +ansible_connection=local +ansible_python_interpreter=/usr/local/bin/python3.9 +ansible_become_method=su diff --git a/inventories/local-linux.ini b/inventories/local-linux.ini new file mode 100644 index 0000000..98dec62 --- /dev/null +++ b/inventories/local-linux.ini @@ -0,0 +1,6 @@ +[all] +localhost + +[all:vars] +ansible_connection=local +ansible_python_interpreter=/usr/bin/python3 diff --git a/local.ini b/local.ini deleted file mode 100644 index 98dec62..0000000 --- a/local.ini +++ /dev/null @@ -1,6 +0,0 @@ -[all] -localhost - -[all:vars] -ansible_connection=local -ansible_python_interpreter=/usr/bin/python3 diff --git a/local.ini b/local.ini new file mode 120000 index 0000000..f9db189 --- /dev/null +++ b/local.ini @@ -0,0 +1 @@ +inventories/local-linux.ini \ No newline at end of file