option to add aurrepo optionally

This commit is contained in:
Jörg Thalheim 2015-10-03 22:27:22 +00:00
parent bb394ef96d
commit 1070603a9c
3 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1 @@
add_repo_in_pacman_conf: true

View File

@ -1,13 +1,10 @@
- name: Write pacman.conf
copy: src=pacman.conf dest=/etc/pacman.conf
template: src=pacman.conf.j2 dest=/etc/pacman.conf mode=0644
- name: Write mirrorlist
copy: src=mirrorlist dest=/etc/pacman.d/mirrorlist
- name: Copy Custom Repo GPG key
copy: src=repo-gpg.asc dest=/etc/pacman.d/repo-gpg.asc
register: repo_gpg
- name: Import repo gpg key
action: command /usr/bin/pacman-key --add /etc/pacman.d/repo-gpg.asc
when: repo_gpg.changed
- name: Sign repo gpg key
action: command /usr/bin/pacman-key --lsign CEEFA661
when: repo_gpg.changed

View File

@ -24,7 +24,7 @@ CleanMethod = KeepCurrent
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
IgnorePkg = linux-lts linux-lts-headers spl-lts spl-utils-lts zfs-lts zfs-utils-lts
#IgnoreGroup =
#NoUpgrade =
@ -97,5 +97,7 @@ Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
{% if add_repo_in_pacman_conf %}
[repo]
Server = file:///srv/repo
{% endif %}