diff --git a/playbooks/pass.yaml b/playbooks/pass.yaml new file mode 100644 index 0000000..4c3c867 --- /dev/null +++ b/playbooks/pass.yaml @@ -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 diff --git a/setup.yaml b/setup.yaml index 84c0d4d..ec9d641 100644 --- a/setup.yaml +++ b/setup.yaml @@ -1,12 +1,14 @@ --- +- import_playbook: playbooks/apt.yaml - import_playbook: playbooks/env.yaml -- import_playbook: playbooks/fonts.yaml - import_playbook: playbooks/firefox.yaml -- import_playbook: playbooks/apt.yaml -- import_playbook: playbooks/nvim.yaml -- import_playbook: playbooks/zsh.yaml +- import_playbook: playbooks/fonts.yaml +- import_playbook: playbooks/pass.yaml - import_playbook: playbooks/ssh.yaml - import_playbook: playbooks/sway.yaml +- import_playbook: playbooks/zsh.yaml +# needs pass +- import_playbook: playbooks/nvim.yaml - name: Set up my computer hosts: localhost connection: local