Compare commits
3 Commits
a3ffc713c1
...
bfbb228d12
Author | SHA1 | Date | |
---|---|---|---|
bfbb228d12 | |||
f84085a142 | |||
7d5c4c9d2d |
@ -8,6 +8,7 @@
|
||||
- git
|
||||
- sl
|
||||
- htop
|
||||
- patch
|
||||
- tmux
|
||||
- tree
|
||||
register: pkg_result
|
||||
|
@ -5,6 +5,7 @@
|
||||
name:
|
||||
- feh
|
||||
- mpv
|
||||
- obs-studio
|
||||
- vlc
|
||||
- zathura
|
||||
- zathura-pdf-poppler
|
||||
|
28
roles/pacman/tasks/main.yml
Normal file
28
roles/pacman/tasks/main.yml
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: Ensure pacman is installed
|
||||
package:
|
||||
name:
|
||||
- pacman
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
|
||||
- name: Use Crans mirror
|
||||
template:
|
||||
src: pacman.d/mirrorlist.j2
|
||||
dest: /etc/pacman.d/mirrorlist
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Enable colors and sugar
|
||||
lineinfile:
|
||||
regex: "{{ item }}"
|
||||
line: "{{ item }}"
|
||||
insertafter: "[options]"
|
||||
path: /etc/pacman.conf
|
||||
loop:
|
||||
- Color
|
||||
- TotalDownload
|
||||
- CheckSpace
|
||||
- ILoveCandy
|
4
roles/pacman/templates/pacman.d/mirrorlist.j2
Normal file
4
roles/pacman/templates/pacman.d/mirrorlist.j2
Normal file
@ -0,0 +1,4 @@
|
||||
{{ ansible_header | comment }}
|
||||
|
||||
Server = https://ftps.crans.org/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.crans.org/archlinux/$repo/os/$arch
|
@ -3,8 +3,9 @@
|
||||
- name: Queries package manager to install pass
|
||||
package:
|
||||
name:
|
||||
- pass
|
||||
- jq
|
||||
- git
|
||||
- pass
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
|
@ -14,6 +14,7 @@
|
||||
- ttf-liberation
|
||||
- xorg-fonts-type1
|
||||
- xorg-xinit
|
||||
- xorg-xinput
|
||||
- xorg-server
|
||||
- xss-lock
|
||||
register: pkg_result
|
||||
|
Loading…
x
Reference in New Issue
Block a user