File tree Expand file tree Collapse file tree 2 files changed +11
-31
lines changed Expand file tree Collapse file tree 2 files changed +11
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 114
114
state : directory
115
115
mode : " 0755"
116
116
117
- - name : " Git | Read allowed_signers secret from 1Password"
118
- when : op_installed
119
- block :
120
- - name : " 1Password | Get allowed_signers"
121
- ansible.builtin.command : " op read '{{ op.git.allowed_signers }}'"
122
- register : op_git_ssh_allowed_signers
123
- changed_when : false
124
- no_log : true
125
-
126
- - name : " 1Password | Configure ~/.config/git/allowed_signers"
127
- ansible.builtin.lineinfile :
128
- path : " {{ ansible_user_dir }}/.config/git/allowed_signers"
129
- line : " {{ op_git_ssh_allowed_signers.stdout }}"
130
- mode : " 0600"
131
- create : true
132
- no_log : true
117
+ - name : " 1Password | Get allowed_signers"
118
+ ansible.builtin.command : " op read '{{ op.git.allowed_signers }}'"
119
+ register : op_git_ssh_allowed_signers
120
+ changed_when : false
121
+ no_log : true
133
122
134
- - name : " Git | Configure ~/.config/git/allowed_signers"
135
- when : not op_installed
136
- ansible.builtin.copy :
137
- src : allowed_signers
138
- dest : " {{ ansible_user_dir }}/.config/git/allowed_signers"
123
+ - name : " 1Password | Configure ~/.config/git/allowed_signers"
124
+ ansible.builtin.blockinfile :
125
+ path : " {{ ansible_user_dir }}/.config/git/allowed_signers"
126
+ block : " {{ op_git_ssh_allowed_signers.stdout }}"
139
127
mode : " 0600"
128
+ create : true
129
+ no_log : true
140
130
141
131
- name : " Git | Set gpg.ssh.allowedSignersFile"
142
132
community.general.git_config :
You can’t perform that action at this time.
0 commit comments