From 7517d2d7c90c9b8acada0ffb9ccc6025942ed239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 6 Jun 2024 03:03:25 +0300 Subject: [PATCH] Code Update --- src/functions/init.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/functions/init.sh b/src/functions/init.sh index 41d26bd..db84a97 100644 --- a/src/functions/init.sh +++ b/src/functions/init.sh @@ -39,13 +39,11 @@ wi-init(){ GIT_PORT="2222" GIT_REPOSITORY="warengroup-private/infra-plus" - ssh-keyscan -p $GIT_PORT $GIT_DOMAIN &> ~/.ssh/known_hosts - export HVT=${config["login",$ORG]} /opt/ansible/bin/ansible-galaxy collection install ansible.posix ansible.utils community.crypto community.docker community.general community.hashi_vault community.libvirt community.mysql community.postgresql containers.podman --upgrade &> /dev/null - /opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY --vault-password-file ~/.ansible/vault.yml --private-key ~/.ssh/init playbooks/init.yml -t init + /opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY --accept-host-key --vault-password-file ~/.ansible/vault.yml --private-key ~/.ssh/init playbooks/init.yml -t init unset HVT }