From e7c9bf715db5255074b6f7554a60de263cc3aa96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 10 Nov 2018 08:09:49 +0100 Subject: [PATCH] Move password store to its place --- .gitmodules | 3 --- password_store | 1 - roles/gnupg/tasks/main.yml | 4 ---- roles/tools/tasks/main.yml | 9 ++++----- 4 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 .gitmodules delete mode 160000 password_store diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 8a151f4..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "password_store"] - path = password_store - url = gitolite@git.immae.eu:perso/Immae/Prive/Password_store diff --git a/password_store b/password_store deleted file mode 160000 index 7a3d737..0000000 --- a/password_store +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7a3d737bfef73cbbfe43ab5541233fca68b7443b diff --git a/roles/gnupg/tasks/main.yml b/roles/gnupg/tasks/main.yml index a2b9aa6..2bd1c79 100644 --- a/roles/gnupg/tasks/main.yml +++ b/roles/gnupg/tasks/main.yml @@ -93,7 +93,3 @@ state: restarted name: "{{ item }}.socket" loop: "{{ results.results|selectattr('changed')|map(attribute='item')|list }}" -- name: clone password store - register: clone_password_store - shell: "cd $(dirname $ANSIBLE_CONFIG ); git submodule update --init password_store" - changed_when: clone_password_store is defined and "stdout" in clone_password_store and clone_password_store.stdout != "" diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 56298cb..745a08f 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -46,11 +46,10 @@ dest: $XDG_CONFIG_HOME/systemd/user/ notify: - reload systemd -- name: Link password store - file: - path: "$XDG_DATA_HOME/pass" - src: "$XDG_CONFIG_HOME/ansible/password_store" - state: link +- name: Clone password store + git: + dest: "$XDG_DATA_HOME/pass" + repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store - name: dconf configuration # check: `dconf dump /` or `dconf-editor` dconf: -- 2.41.0