Add pass config

main
Micke Nordin 1 year ago
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

@ -1,12 +1,14 @@
--- ---
- import_playbook: playbooks/apt.yaml
- import_playbook: playbooks/env.yaml - import_playbook: playbooks/env.yaml
- import_playbook: playbooks/fonts.yaml
- import_playbook: playbooks/firefox.yaml - import_playbook: playbooks/firefox.yaml
- import_playbook: playbooks/apt.yaml - import_playbook: playbooks/fonts.yaml
- import_playbook: playbooks/nvim.yaml - import_playbook: playbooks/pass.yaml
- import_playbook: playbooks/zsh.yaml
- import_playbook: playbooks/ssh.yaml - import_playbook: playbooks/ssh.yaml
- import_playbook: playbooks/sway.yaml - import_playbook: playbooks/sway.yaml
- import_playbook: playbooks/zsh.yaml
# needs pass
- import_playbook: playbooks/nvim.yaml
- name: Set up my computer - name: Set up my computer
hosts: localhost hosts: localhost
connection: local connection: local

Loading…
Cancel
Save