diff --git a/.gitignore b/.gitignore index 5c199eb..01d546b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ # ---> Ansible *.retry - +data/secret/ \ No newline at end of file diff --git a/playbooks/deploy.yaml b/playbooks/deploy.yaml index ce69927..4a1c293 100644 --- a/playbooks/deploy.yaml +++ b/playbooks/deploy.yaml @@ -5,7 +5,7 @@ roles: - ../roles/0_basic_postinstall vars_files: - ../data/secrets.yaml + ../data/secret/secrets.yaml vars: ansible_user_passwd_hash: "{{ ansible_become_password | password_hash('sha512', 's3edscrj45e6r') }}" user_passwd_hash: "{{ user_password | password_hash('sha512', 's3ed6123jhgcr') }}" diff --git a/run_playbook.sh b/run_playbook.sh index dfee666..ff64953 100755 --- a/run_playbook.sh +++ b/run_playbook.sh @@ -1,2 +1,4 @@ #!/bin/sh -ansible-playbook -i inventory/deploy/hosts.yaml playbooks/deploy.yaml --private-key ~/.ssh/ansible_key --vault-password-file .vault_pass \ No newline at end of file +ansible-playbook -i inventory/deploy/hosts.yaml playbooks/deploy.yaml \ + --private-key data/secret/ansible_key \ + --vault-password-file data/secret/.vault_pass \ No newline at end of file