From 0b153cbeaaabbd767807c1146f4fd9a83771301b Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 6 Aug 2023 12:00:17 +0200 Subject: Fix initial deploy to use vault and target variable --- initial-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'initial-deploy.yml') diff --git a/initial-deploy.yml b/initial-deploy.yml index 8fa7330..23a9f8f 100644 --- a/initial-deploy.yml +++ b/initial-deploy.yml @@ -1,6 +1,6 @@ - name: Setup Ansible user and authorized keys gather_facts: false - hosts: new + hosts: "{{ target }}" tasks: - name: Install sudo package package: @@ -10,7 +10,7 @@ user: name: "ansible" groups: "sudo" - password: "{{ new | password_hash('sha512') }}" + password: "{{ mypass | password_hash('sha512') }}" - name: Setup Authorized keys authorized_key: user: "ansible" -- cgit v1.2.3