summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2023-08-06 12:00:17 +0200
committeruvok cheetah2023-08-06 12:00:17 +0200
commit0b153cbeaaabbd767807c1146f4fd9a83771301b (patch)
treef4af1ba526a7fe7486c36a386e394b845a2f1c12
parent749ab0872a4934b952033f5605d11d09b2e4594b (diff)
Fix initial deploy to use vault and target variable
-rw-r--r--initial-deploy.yml4
1 files changed, 2 insertions, 2 deletions
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"