[FIX] apt state latest only after adding custom apt repo
This commit is contained in:
parent
2122e7f4eb
commit
7ddcfaee9b
|
@ -96,7 +96,7 @@ The different tasks should be used on a case-by-case basis:
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: ufw
|
name: ufw
|
||||||
state: latest
|
state: present
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: borgbackup
|
name: borgbackup
|
||||||
state: latest
|
state: present
|
||||||
update_cache: yes
|
|
||||||
cache_valid_time: 3600
|
|
||||||
when:
|
when:
|
||||||
- borgbackup_host is defined
|
- borgbackup_host is defined
|
||||||
- borgbackup_sub is defined
|
- borgbackup_sub is defined
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: libcap2-bin
|
name: libcap2-bin
|
||||||
state: latest
|
state: present
|
||||||
- name: caddyserver - Give caddy port binding capabilities
|
- name: caddyserver - Give caddy port binding capabilities
|
||||||
become: yes
|
become: yes
|
||||||
shell: "setcap cap_net_bind_service=+ep /usr/local/bin/caddy"
|
shell: "setcap cap_net_bind_service=+ep /usr/local/bin/caddy"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: latest
|
state: present
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- exim4
|
- exim4
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: latest
|
state: present
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: apt-transport-https
|
name: apt-transport-https
|
||||||
state: latest
|
state: present
|
||||||
- name: telegraf - Add telegraf repo key
|
- name: telegraf - Add telegraf repo key
|
||||||
become: yes
|
become: yes
|
||||||
apt_key:
|
apt_key:
|
||||||
|
|
|
@ -42,12 +42,12 @@ borg create \
|
||||||
backup_exit=$?
|
backup_exit=$?
|
||||||
|
|
||||||
|
|
||||||
# Prune old backups: keep 7 daily, 4 weekly and 3 monthly
|
# Prune old backups: keep 7 daily, 3 weekly and 2 monthly (3 months total)
|
||||||
borg prune \
|
borg prune \
|
||||||
--prefix '{{ borgbackup_host }}-' \
|
--prefix '{{ borgbackup_host }}-' \
|
||||||
--keep-daily 7 \
|
--keep-daily 7 \
|
||||||
--keep-weekly 4 \
|
--keep-weekly 3 \
|
||||||
--keep-monthly 3
|
--keep-monthly 2
|
||||||
|
|
||||||
prune_exit=$?
|
prune_exit=$?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue