Cleanup installed keys

This commit is contained in:
Jake Howard 2019-01-06 19:24:43 +00:00
parent 075560d5f1
commit bb4a917eb8
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,16 +1,21 @@
- set_fact: - set_fact:
keys: keys:
- '8A8F901A' # Sublime Text - '1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A' # Sublime Text
- 'D1483FA6C3C07136' # Tor Browser - 'EF6E286DDA85EA2A4BA7DE684E2C6E8793298290' # Tor Browser
- '9D5F1C051D146843CDA4858BDE64825E7CBC0D51' # ArchStrike - '9D5F1C051D146843CDA4858BDE64825E7CBC0D51' # ArchStrike
- '7448C890582975CD'
- name: "Get installed pacman keys"
shell: "pacman-key --list-keys"
register: pacman_keys
- name: "Add keys to pacman" - name: "Add keys to pacman"
shell: "pacman-key -r {{ item }}" shell: "pacman-key -r {{ item }}"
when: "item not in pacman_keys.stdout"
with_items: "{{ keys }}" with_items: "{{ keys }}"
- name: "Sign keys in pacman" - name: "Sign keys in pacman"
shell: "pacman-key --lsign-key {{ item }}" shell: "pacman-key --lsign-key {{ item }}"
when: "item not in pacman_keys.stdout"
with_items: "{{ keys }}" with_items: "{{ keys }}"
- copy: - copy:
@ -184,7 +189,7 @@
- 'thunderbird' - 'thunderbird'
- 'tig' - 'tig'
- 'tmux' - 'tmux'
- 'tor-browser-en' - 'tor-browser'
- 'ttf-emojione' - 'ttf-emojione'
- 'ttf-fira-code' - 'ttf-fira-code'
- 'ttf-font-awesome' - 'ttf-font-awesome'