From 05d3f82caf6ede90b50110ef2d1a69837c21fded Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 27 Apr 2024 10:57:32 +0200 Subject: [PATCH] Set default inventory --- README.md | 4 ++-- ansible.cfg | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e1609e..140aa81 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,8 @@ Create a read-only token in NetBox. Define required variables: Run one-off tasks with (add `--key-file` or other options as necessary): - ansible -i inventory.yml -m ping 'server-*' + ansible -m ping 'server-*' Run a playbook with: - ansible-playbook setup.yml -i inventory.yml -l 'server-*' + ansible-playbook setup.yml -l 'server-*' diff --git a/ansible.cfg b/ansible.cfg index 0c5eed0..c6e6e02 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,4 @@ [defaults] +nocows = true +inventory = inventory.yml remote_user = root