Gabungkan repo iix dan repo magelang dalam satu roles

master
Ronggo Radityo 2021-09-07 17:00:11 +07:00
parent e33bf2866d
commit dfd9761f1b
4 changed files with 23 additions and 5 deletions

View File

@ -1,2 +1,4 @@
---
# defaults file for roles/aptsrc
# defaults file for roles/aptsrc
release: bullseye
repo: iix

View File

@ -1,8 +1,16 @@
---
# tasks file for roles/aptsrc
# tasks file for roles/aptsrc iix
- name: Change apt/source.list to repo Indonesia Kartolo
template:
src: templates/etc/apt/sources.list.j2
src: templates/etc/apt/sources.list-iix.j2
dest: /etc/apt/sources.list
mode: 0644
when: ansible_os_family == 'Debian'
when: ansible_os_family == 'Debian' and repo == 'iix'
# tasks file for roles/aptsrc iix
- name: Change apt/source.list to repo Magelang
template:
src: templates/etc/apt/sources.list-mgl.j2
dest: /etc/apt/sources.list
mode: 0644
when: ansible_os_family == 'Debian' and repo == 'magelang'

View File

@ -1,6 +1,10 @@
{%- if release=="bullseye" %}
deb http://security.debian.org/debian-security {{ release }}-security main contrib non-free
# deb-src http://security.debian.org/debian-security {{ release }}-security main contrib non-free
{% else %}
deb http://security.debian.org/debian-security {{ release }}/updates main contrib non-free
# deb-src http://security.debian.org/debian-security {{ release }}/updates main contrib non-free
{% endif %}
deb http://kartolo.sby.datautama.net.id/debian/ {{ release }} main non-free contrib
deb http://kartolo.sby.datautama.net.id/debian/ {{ release }}-updates main contrib non-free
deb http://kartolo.sby.datautama.net.id/debian/ {{ release }}-backports main contrib non-free

View File

@ -0,0 +1,4 @@
deb http://gethuk.magelangkota.go.id/repo/debian {{ release }} main non-free contrib
deb http://gethuk.magelangkota.go.id/repo/debian-security {{ release }}{%- if release=="bullseye" %}-security{% else %}/updates{% endif %} main non-free contrib
deb http://gethuk.magelangkota.go.id/repo/debian {{ release }}-updates main non-free contrib
deb http://gethuk.magelangkota.go.id/repo/debian {{ release }}-backports main non-free contrib