From b9c8aa87ea9fd579c7bb8698817352e6bd0cd0c6 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Wed, 22 May 2024 00:29:08 +0200 Subject: [PATCH] remove invemtory --- inst-raps.sh | 2 +- inventory | 1 - main.yml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 inventory diff --git a/inst-raps.sh b/inst-raps.sh index d402804..3d4dcda 100755 --- a/inst-raps.sh +++ b/inst-raps.sh @@ -151,7 +151,7 @@ printSuccess "/root/ansible/.vault_pass.txt exist" # execute playbook #----------------------------------------------------------------------------- printInfo "Execute playbook" -~/.local/bin/ansible-playbook -i inventory main.yml --vault-password-file ~/ansible/.vault_pass.txt +~/.local/bin/ansible-playbook main.yml --vault-password-file ~/ansible/.vault_pass.txt if [ $? -ne 0 ]; then printError "Problem to execute playbook";exit; fi printSuccess "Ansible playbook finished" diff --git a/inventory b/inventory deleted file mode 100644 index d18580b..0000000 --- a/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost \ No newline at end of file diff --git a/main.yml b/main.yml index 27e9030..8e1c073 100644 --- a/main.yml +++ b/main.yml @@ -1,2 +1,2 @@ --- -- hosts: localhost \ No newline at end of file +- hosts: all \ No newline at end of file