From d1309f7aafa0ec264da1d8b67e2f4452185d05ae Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Sun, 14 Sep 2025 20:25:11 +0200 Subject: [PATCH] Add ini-suffix to inventory file to make the filetype clear This change further changes the name of the only host in question form localhost to "127.0.0.1" to resolve the annoying warning about the duplicated declaration of "localhost" at the start of the execution of the playbook. --- ansible.cfg | 2 +- inventory | 2 -- inventory.ini | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 inventory create mode 100644 inventory.ini diff --git a/ansible.cfg b/ansible.cfg index 41fb4f8..d4503ca 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,6 +1,6 @@ [defaults] nocows = True -inventory = inventory +inventory = inventory.ini become = True ask-become-pass = True display_skipped_hosts = False diff --git a/inventory b/inventory deleted file mode 100644 index 75304a0..0000000 --- a/inventory +++ /dev/null @@ -1,2 +0,0 @@ -[localhost] -localhost ansible_connection=local diff --git a/inventory.ini b/inventory.ini new file mode 100644 index 0000000..45b5d23 --- /dev/null +++ b/inventory.ini @@ -0,0 +1,2 @@ +[localhost] +127.0.0.1 ansible_connection=local