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