Skip to content

Commit

Permalink
Add ac_admin_password for secrets repository
Browse files Browse the repository at this point in the history
  • Loading branch information
waal70 committed Oct 13, 2024
1 parent 08b866b commit 5644a2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ansible_control/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@

- name: Checkout secrets repository into home of interactive_user # noqa: latest[git]
ansible.builtin.command:
cmd: "sshpass -p <password> git clone {{ git_repo_secrets }} {{ interactive_home }}/{{ repo_secrets_dir }}"
cmd: "sshpass -p {{ ac_admin_password }} git clone {{ git_repo_secrets }} {{ interactive_home }}/{{ repo_secrets_dir }}"
become_user: "{{ interactive_user }}"
changed_when: true
4 changes: 4 additions & 0 deletions roles/ansible_control/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
# tasks file for ansible_control
- name: Include vaulted password file
ansible.builtin.include_vars:
file: ../home/ansible-vault/ansible-control-vars.yml

- name: Include install tasks when relevant
ansible.builtin.import_tasks: install.yml
when: action_install
Expand Down

0 comments on commit 5644a2d

Please sign in to comment.