parent
0f9e2dd2a6
commit
2e30be2ff4
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- name: Get password store
|
||||||
|
hosts: localhost
|
||||||
|
vars:
|
||||||
|
uid: "{{ lookup('env','USER') }}"
|
||||||
|
pass_repo: ssh://git@code.smolnet.org:22022/micke/pass.git
|
||||||
|
pass_path: /home/{{ uid }}/.password-store
|
||||||
|
connection: local
|
||||||
|
become: false
|
||||||
|
tasks:
|
||||||
|
- name: Have pass
|
||||||
|
stat:
|
||||||
|
path: '{{ pass_path }}'
|
||||||
|
register: password_store
|
||||||
|
- name: Get password-store
|
||||||
|
ansible.builtin.command:
|
||||||
|
chdir: /tmp
|
||||||
|
cmd: git clone {{ pass_repo }} {{ pass_path }}
|
||||||
|
creates: '{{ pass_path }}'
|
||||||
|
when: not password_store.stat.exists
|
Loading…
Reference in new issue