Evolution of deployment

This commit is contained in:
2023-11-30 02:47:16 -06:00
parent 8392a3fe46
commit 69e2bcc966
21 changed files with 196 additions and 28 deletions

View File

@@ -0,0 +1,14 @@
port: 9129
download_timeout: 3600 # download will timeout after 3600 seconds
cache_dir: /var/cache/pacoloco
purge_files_after: 360000 # 360000 seconds or 100 hours, 0 to disable
repos:
archlinux:
urls:
- http://mirrors.gigenet.com/archlinux/
- http://mnvoip.mm.fcix.net/archlinux/
- http://mirrors.kernel.org/archlinux/
- http://ftp.osuosl.org/pub/archlinux/
- https://mnvoip.mm.fcix.net/archlinux/
- http://southfront.mm.fcix.net/archlinux/
user_agent: Pacoloco

View File

@@ -4,6 +4,7 @@
package:
name:
- Maat
- pacoloco
- name: makepkg.conf configuration
become: yes
@@ -26,3 +27,24 @@
name: maat.timer
state: restarted
enabled: yes
- name: Generate mirrorlist
delegate_to: localhost
run_once: yes
command: "bash ../bin/generate-mirrorlist"
- name: Copy pacoloco config
become: yes
copy:
src: pacoloco.yaml
dest: /etc/pacoloco.yaml
owner: root
group: root
mode: 0755
- name: Start pacoloco service
become: yes
service:
name: pacoloco
state: restarted
enabled: yes