Skip to content

Commit

Permalink
yubikey,gpg: move the yubikey setup scripts to yubikey role
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Jul 19, 2024
1 parent 3103b1a commit 0821086
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions roles/gpg/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
loop:
- scripts/gpg_setup_keyring.sh
- scripts/gpg_extend_subkeys.sh
- scripts/gpg_yubikey_initial_setup.sh
- scripts/gpg_yubikey_keytocard.sh

- name: Ensure /usr/local/bin directory exists
become: true
Expand Down
1 change: 1 addition & 0 deletions roles/yubikey/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
dependencies:
- role: aur_builder
- role: gpg
9 changes: 9 additions & 0 deletions roles/yubikey/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@
name: polkit
state: "{{ (polkit_rules.changed) | ternary('restarted', 'started') }}"

- name: Copy gpg_ scripts
ansible.builtin.copy:
src: "{{ item }}"
dest: "~/scripts/gpg"
mode: 0755
loop:
- scripts/gpg_yubikey_initial_setup.sh
- scripts/gpg_yubikey_keytocard.sh

- name: Template sway plugin
ansible.builtin.include_role:
name: helper_sway_plugin
Expand Down

0 comments on commit 0821086

Please sign in to comment.