Add unstable sources.list
This commit is contained in:
parent
67087c4f48
commit
f407329ecc
10 changed files with 51 additions and 7 deletions
17
.yamllint.yaml
Normal file
17
.yamllint.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
|
||||
extends: relaxed
|
||||
|
||||
rules:
|
||||
# 80 chars should be enough, but don't fail if a line is longer
|
||||
line-length:
|
||||
max: 200
|
||||
level: warning
|
||||
empty-lines:
|
||||
max: 2
|
||||
max-start: 1
|
||||
max-end: 1
|
||||
colons:
|
||||
max-spaces-after: -1
|
||||
commas:
|
||||
max-spaces-after: -1
|
|
@ -15,6 +15,8 @@
|
|||
group: "{{ item.group | default('root') }}"
|
||||
with_items:
|
||||
- { src: "apt.conf.j2", dest: "/etc/apt/apt.conf" }
|
||||
- { src: "apt-defaultrelease.j2", dest: "/etc/apt/apt.conf.d/09defaultrelease" }
|
||||
- { src: "apt-preferences-stable.j2", dest: "/etc/apt/preferences.d/stableonly" }
|
||||
- { src: "sources.list.j2", dest: "/etc/apt/sources.list" }
|
||||
- { src: "apt-auto-upgrades.j2", dest: "/etc/apt/apt.conf.d/20auto-upgrades" }
|
||||
- { src: "apt-unattended-upgrades.j2", dest: "/etc/apt/apt.conf.d/50unattended-upgrades" }
|
||||
|
|
1
roles/common/templates/apt-defaultrelease.j2
Normal file
1
roles/common/templates/apt-defaultrelease.j2
Normal file
|
@ -0,0 +1 @@
|
|||
APT::Default-Release "{{ ansible_distribution_release }}";
|
19
roles/common/templates/apt-preferences-stable.j2
Normal file
19
roles/common/templates/apt-preferences-stable.j2
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Prefer packages from our release
|
||||
# Prevent auto-installation from testing/unstable/sid/whatever
|
||||
|
||||
Package: *
|
||||
Pin: release n={{ ansible_distribution_release }}
|
||||
Pin-Priority: 900
|
||||
|
||||
Package: *
|
||||
Pin: release n=sid
|
||||
Pin-Priority: -10
|
||||
|
||||
Package: *
|
||||
Pin: release n=testing
|
||||
Pin-Priority: -10
|
||||
|
||||
Package: *
|
||||
Pin: release n=unstable
|
||||
Pin-Priority: -10
|
||||
|
|
@ -20,5 +20,8 @@ deb {{ debian_repourl }} {{ ansible_distribution_release }}-backports {{ compone
|
|||
#
|
||||
# Security patches
|
||||
deb {{ debian_securityurl }} {{ ansible_distribution_release }}-security {{ components }}
|
||||
{{ SRC }}deb-src {{ debian_securityurl }} {{ ansible_distribution_release }}-security main contrib non- free
|
||||
{{ SRC }}deb-src {{ debian_securityurl }} {{ ansible_distribution_release }}-security {{ components }}
|
||||
|
||||
# Testing/Unstable repos
|
||||
deb {{ debian_repourl }} testing {{ components }}
|
||||
deb {{ debian_repourl }} sid {{ components }}
|
||||
|
|
|
@ -10,6 +10,7 @@ server {
|
|||
ssl_certificate /var/lib/dehydrated/certs/{{ site.server_name }}/fullchain.pem;
|
||||
ssl_certificate_key /var/lib/dehydrated/certs/{{ site.server_name }}/privkey.pem;
|
||||
|
||||
index {{ nginx_index | default('index.php index.html index.htm') }};
|
||||
client_max_body_size {{ nginx_client_max_body_size }};
|
||||
|
||||
location ~ /\.ht {
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
- liblinux-inotify2-perl
|
||||
|
||||
- name: Install mqtt-simple
|
||||
ansible.builtin.command:
|
||||
cmd: cpan Net::MQTT::Simple
|
||||
community.general.cpanm:
|
||||
name: Net::MQTT::Simple
|
||||
|
||||
- name: Install photos2mqtt
|
||||
ansible.builtin.template:
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
vars:
|
||||
description: "SMD630 to MQTT Probe"
|
||||
exec: "/var/lib/power-mqtt.py %i"
|
||||
notify: Restart power-mqtt@
|
||||
notify: Restart power-mqtt
|
||||
|
||||
- name: Enable power-mqtt
|
||||
ansible.builtin.systemd:
|
||||
|
@ -40,3 +40,4 @@
|
|||
ip: 0.0.0.0
|
||||
- net: unicorndept
|
||||
ip: 0.0.0.0
|
||||
ignore_errors: true # FIXME
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
- make
|
||||
|
||||
- name: Install mqtt-simple
|
||||
ansible.builtin.command:
|
||||
cmd: cpan Net::MQTT::Simple
|
||||
community.general.cpanm:
|
||||
name: Net::MQTT::Simple
|
||||
|
||||
- name: Add user
|
||||
ansible.builtin.user:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- name: Install mqtt-simple
|
||||
community.general.cpanm:
|
||||
name: Net::MQTT::Simple
|
||||
name: "Net::MQTT::Simple"
|
||||
|
||||
- name: Clone mqtt2web source
|
||||
ansible.builtin.git:
|
||||
|
|
Loading…
Add table
Reference in a new issue