Remove git configuration
This commit is contained in:
parent
523b5cd49f
commit
75019c6049
3 changed files with 0 additions and 63 deletions
|
|
@ -1,30 +0,0 @@
|
|||
- name: Copy git configuration
|
||||
ansible.builtin.template:
|
||||
src: 'templates/gitconfig.j2'
|
||||
dest: '{{ ansible_env.HOME }}/.gitconfig'
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy keys
|
||||
ansible.builtin.copy:
|
||||
src: '{{ item.src }}'
|
||||
dest: '{{ item.dest }}'
|
||||
mode: '0755'
|
||||
loop:
|
||||
- src: 'files/personal/all/gpg/gpg_key'
|
||||
dest: '{{ ansible_env.HOME }}/gpg.key'
|
||||
- src: 'files/personal/all/gpg/gpg_pub'
|
||||
dest: '{{ ansible_env.HOME }}/gpg.pub'
|
||||
|
||||
- name: Import secret key
|
||||
ansible.builtin.command: 'gpg --passphrase {{ gpg_passphrase }} --import ~/gpg.key'
|
||||
|
||||
- name: Import public key
|
||||
ansible.builtin.command: 'gpg --import ~/gpg.pub'
|
||||
|
||||
- name: Remove temp keys
|
||||
ansible.builtin.file:
|
||||
path: '{{ item }}'
|
||||
state: absent
|
||||
loop:
|
||||
- '{{ ansible_env.HOME }}/gpg.key'
|
||||
- '{{ ansible_env.HOME }}/gpg.pub'
|
||||
Loading…
Add table
Add a link
Reference in a new issue