Add defaults; clear sources.list
This commit is contained in:
parent
035e95a6b9
commit
b9581a9fa3
3 changed files with 22 additions and 8 deletions
|
|
@ -52,11 +52,11 @@
|
|||
version: 1.8.5
|
||||
visicut:
|
||||
url: "https://github.com/t-oster/VisiCut/releases/download/1.7_310/visicut_1.7-310-gcf8c087-1_all.deb"
|
||||
apt_sources:
|
||||
debian_sections:
|
||||
- main
|
||||
- contrib
|
||||
- non-free
|
||||
debian_sections:
|
||||
- main
|
||||
- contrib
|
||||
- non-free
|
||||
debian_mirror: http://ftp.de.debian.org/debian
|
||||
hardware:
|
||||
firmware:
|
||||
- firmware-amd-graphics
|
||||
|
|
|
|||
4
packer/ansible/roles/packages/defaults/main.yml
Normal file
4
packer/ansible/roles/packages/defaults/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
debian_mirror: http://deb.debian.org/debian
|
||||
debian_mirror_security: http://security.debian.org/
|
||||
debian_sections:
|
||||
- main
|
||||
|
|
@ -1,15 +1,25 @@
|
|||
---
|
||||
- name: clear sources.list
|
||||
copy:
|
||||
content: ""
|
||||
dest: /etc/apt/sources.list
|
||||
|
||||
- name: configure main repo
|
||||
apt_repository:
|
||||
repo: "deb http://deb.debian.org/debian stretch {{ apt_sources.debian_sections | join(' ') }}"
|
||||
filename: "{{ ansible_distribution_release }}"
|
||||
repo: "deb {{ debian_mirror }} {{ ansible_distribution_release }} {{ debian_sections | join(' ') }}"
|
||||
state: present
|
||||
|
||||
- name: configure updates repo
|
||||
apt_repository:
|
||||
repo: "deb http://deb.debian.org/debian stretch-updates {{ apt_sources.debian_sections | join(' ') }}"
|
||||
filename: "{{ ansible_distribution_release }}-updates"
|
||||
repo: "deb {{ mirror }} {{ ansible_distribution_release }}-updates {{ debian_sections | join(' ') }}"
|
||||
state: present
|
||||
vars:
|
||||
mirror: "{{ debian_mirror_updates | default(debian_mirror) }}"
|
||||
|
||||
- name: configure security updates repo
|
||||
apt_repository:
|
||||
repo: "deb http://security.debian.org stretch/updates {{ apt_sources.debian_sections | join(' ') }}"
|
||||
filename: "{{ ansible_distribution_release }}-security"
|
||||
repo: "deb {{ debian_mirror_security }} {{ ansible_distribution_release }}/updates {{ debian_sections | join(' ') }}"
|
||||
state: present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue