diff --git a/dotfiles.yml b/dotfiles.yml index da4e40a..1158344 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -13,3 +13,4 @@ - import_tasks: tasks/i3.yml - import_tasks: tasks/services.yml - import_tasks: tasks/shell.yml + - import_tasks: tasks/yaourt.yml diff --git a/modules/yaourt/files/.yaourtrc b/files/.yaourtrc similarity index 100% rename from modules/yaourt/files/.yaourtrc rename to files/.yaourtrc diff --git a/modules/yaourt/files/pacman.conf b/files/pacman.conf similarity index 100% rename from modules/yaourt/files/pacman.conf rename to files/pacman.conf diff --git a/tasks/yaourt.yml b/tasks/yaourt.yml new file mode 100644 index 0000000..9d88065 --- /dev/null +++ b/tasks/yaourt.yml @@ -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 }}"