diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-01-02 22:18:30 +0000 |
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-01-02 22:18:30 +0000 |
| commit | e0bfe2bf0c42a1a000d1a326500793e10b15ff1a (patch) | |
| tree | 0bf592a13a0771a09f216f33f46cd789b7dda41c /roles/pacman | |
| parent | 6bc9c8ff43796a702b7abf8fc5baa68f5e85ee5d (diff) | |
| download | infra-e0bfe2bf0c42a1a000d1a326500793e10b15ff1a.tar.gz infra-e0bfe2bf0c42a1a000d1a326500793e10b15ff1a.tar.bz2 infra-e0bfe2bf0c42a1a000d1a326500793e10b15ff1a.zip | |
Add playbook for epgtrim
Diffstat (limited to 'roles/pacman')
| -rw-r--r-- | roles/pacman/files/misc | 3 | ||||
| -rw-r--r-- | roles/pacman/tasks/main.yml | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/roles/pacman/files/misc b/roles/pacman/files/misc new file mode 100644 index 0000000..bc506c8 --- /dev/null +++ b/roles/pacman/files/misc @@ -0,0 +1,3 @@ +Server = https://packages.ilvokhin.com/$arch +# TODO: sign all packages and remove this line. +SigLevel = Optional diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml new file mode 100644 index 0000000..e7c9a9a --- /dev/null +++ b/roles/pacman/tasks/main.yml @@ -0,0 +1,22 @@ +- name: Configure misc pacman repository + ansible.builtin.copy: + src: files/misc + dest: /etc/pacman.d + owner: root + group: root + mode: u+rw,g+r,o+r + +- name: Add misc repository to pacman.conf + ansible.builtin.lineinfile: + dest: /etc/pacman.conf + state: present + regexp: "{{ item.regexp }}" + line: "{{ item.line }}" + owner: root + group: root + mode: u+rw,g+r,o+r + loop: + - regexp: '^[misc]' + line: '[misc]' + - regexp: '^Include = /etc/pacman.d/misc' + line: 'Include = /etc/pacman.d/misc' |