From 9aa1383cb314e987a90323dfb49731512a73c30a Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 18 Jan 2026 17:40:40 +0100 Subject: Add git-crypt role to different machines --- configure.yml | 6 ++++++ roles/git-crypt/meta/argument_specs.yml | 6 ++++++ roles/git-crypt/meta/main.yml | 17 +++++++++++++++++ roles/git-crypt/tasks/main.yml | 6 ++++++ 4 files changed, 35 insertions(+) create mode 100644 roles/git-crypt/meta/argument_specs.yml create mode 100644 roles/git-crypt/meta/main.yml create mode 100644 roles/git-crypt/tasks/main.yml diff --git a/configure.yml b/configure.yml index f8b117a9..b3701a0d 100644 --- a/configure.yml +++ b/configure.yml @@ -21,6 +21,8 @@ - role: "ansible" - role: "rsync" - role: "gpg" + - role: "git" + - role: "git-crypt" - role: "dotfiles" - role: "password_store" - role: "vim" @@ -52,6 +54,8 @@ - role: "gnome" - role: "rsync" - role: "gpg" + - role: "git" + - role: "git-crypt" - role: "dotfiles" - role: "password_store" - role: "vim" @@ -76,6 +80,8 @@ - role: "prometheus" - role: "grafana" - role: "gpg" + - role: "git" + - role: "git-crypt" - role: "dotfiles" - role: "password_store" - role: "vim" diff --git a/roles/git-crypt/meta/argument_specs.yml b/roles/git-crypt/meta/argument_specs.yml new file mode 100644 index 00000000..770e7e6c --- /dev/null +++ b/roles/git-crypt/meta/argument_specs.yml @@ -0,0 +1,6 @@ +--- +argument_specs: + main: + short_description: "Install git-crypt on Linux distribution" + description: "Install git-crypt on Linux distribution" + options: {} diff --git a/roles/git-crypt/meta/main.yml b/roles/git-crypt/meta/main.yml new file mode 100644 index 00000000..1a826a95 --- /dev/null +++ b/roles/git-crypt/meta/main.yml @@ -0,0 +1,17 @@ +--- +dependencies: [] +galaxy_info: + author: "a14m" + description: "Install git-crypt" + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" diff --git a/roles/git-crypt/tasks/main.yml b/roles/git-crypt/tasks/main.yml new file mode 100644 index 00000000..b3fe1f51 --- /dev/null +++ b/roles/git-crypt/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: "Ensure git is installed" + become: true + ansible.builtin.package: + name: "git-crypt" + state: "present" -- cgit v1.2.3