Add yaourt task

This commit is contained in:
Jake Howard 2018-09-10 20:29:44 +01:00
parent 8edd7fe224
commit 9a25d125c9
Signed by: jake
GPG Key ID: 57AFB45680EDD477
4 changed files with 34 additions and 0 deletions

View File

@ -13,3 +13,4 @@
- import_tasks: tasks/i3.yml
- import_tasks: tasks/services.yml
- import_tasks: tasks/shell.yml
- import_tasks: tasks/yaourt.yml

33
tasks/yaourt.yml Normal file
View File

@ -0,0 +1,33 @@
- copy:
src: ./files/pacman.conf
dest: /etc/pacman.conf
mode: 0644
- copy:
src: ./files/.yaourtrc
dest: /home/jake/.yaourtrc
mode: 0644
- set_fact:
keys:
- '8A8F901A' # Sublime Text
- 'D1483FA6C3C07136' # Tor Browser
- '9D5F1C051D146843CDA4858BDE64825E7CBC0D51' # ArchStrike
- '7448C890582975CD'
- name: "Add keys"
shell: "gpg --recv-keys {{ item }}"
with_items: "{{ keys }}"
become: jake
- name: "Add keys for root"
shell: "gpg --recv-keys {{ item }}"
with_items: "{{ keys }}"
- name: "Add keys to pacman"
shell: "pacman-key -r {{ item }}"
with_items: "{{ keys }}"
- name: "Sign keys in pacman"
shell: "pacman-key --lsign-key {{ item }}"
with_items: "{{ keys }}"