From 1b45803cbeb6ae1d7d390335ac68052d5fe61c79 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Tue, 22 Feb 2022 20:24:21 +0100 Subject: [PATCH] toansible: Add git-summary installation --- configs.yml | 8 -------- playbook.yml | 2 ++ roles/git-summary/tasks/main.yml | 13 +++++++++++++ 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 roles/git-summary/tasks/main.yml diff --git a/configs.yml b/configs.yml index b004219..192e41e 100644 --- a/configs.yml +++ b/configs.yml @@ -25,14 +25,6 @@ etckeeper: - run: - sudo etckeeper commit "First commit" -git-summary: - - clone: - - https://gitlab.com/lordadamson/git-summary.git - - ~/.git_clones/git-summary - - symlink: - - ~/.git_clones/git-summary/git-summary - - ~/.local/bin/git-summary - repos: - clone: url: git@tunuifranken.info:flyingscorpio/secrets.git diff --git a/playbook.yml b/playbook.yml index c5deb7d..59fa6d4 100644 --- a/playbook.yml +++ b/playbook.yml @@ -10,6 +10,8 @@ tags: bash - role: zsh tags: zsh + - role: git-summary + tags: git-summary - role: i3 tags: i3 - role: kitty diff --git a/roles/git-summary/tasks/main.yml b/roles/git-summary/tasks/main.yml new file mode 100644 index 0000000..459d2cd --- /dev/null +++ b/roles/git-summary/tasks/main.yml @@ -0,0 +1,13 @@ +--- + +- name: Clone git-summary + git: + repo: https://gitlab.com/lordadamson/git-summary.git + dest: ~/.git_clones/git-summary + clone: yes + +- name: Symlink git-summary + file: + src: ~/.git_clones/git-summary/git-summary + path: ~/.local/bin/git-summary + state: link