mint.yml aktualisiert
This commit is contained in:
parent
f4fdf07b80
commit
0ad8048f50
50
mint.yml
50
mint.yml
@ -77,6 +77,37 @@
|
||||
state: present
|
||||
method: system
|
||||
|
||||
|
||||
- name: mint-config-update
|
||||
blockinfile:
|
||||
path: /etc/systemd/system/mint-config-update.service
|
||||
create: yes
|
||||
mode: 0444
|
||||
owner: root
|
||||
group: root
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||
block: |
|
||||
[Unit]
|
||||
Description=Mint Upgrade Service
|
||||
After=multi-user.target network.target network-online.target nss-lookup.target systemd-resolved docker.service sshd.service
|
||||
Requires=multi-user.target network.target network-online.target nss-lookup.target systemd-resolved docker.service sshd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
RemainAfterExit=true
|
||||
ExecStart=bash "/usr/local/sbin/mint-config-update.sh"
|
||||
ExecStop=bash -c "until ! test -e /run/mint-config-update.sh.lock; do sleep 2; done"
|
||||
TimeoutStopSec=7200
|
||||
|
||||
notify:
|
||||
- Restart mint-config-update
|
||||
|
||||
- name: 'add mint-config-update to startup'
|
||||
command: systemctl enable mint-config-update.service
|
||||
args:
|
||||
creates: /etc/systemd/system/multi-user.target.wants/mint-config-update.service
|
||||
|
||||
- name: remove dhcpcd because NetworkManager is doing the job
|
||||
command: systemctl disable dhcpcd
|
||||
args:
|
||||
@ -111,20 +142,6 @@
|
||||
force: yes
|
||||
backup: yes
|
||||
|
||||
- name: /etc/cron.d/mint-config-update
|
||||
blockinfile:
|
||||
path: /etc/cron.d/mint-config-update
|
||||
mode: "0444"
|
||||
owner: root
|
||||
group: root
|
||||
create: yes
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||
block: |
|
||||
# run mint-config-update after each reboot
|
||||
@reboot root tmux new-session -s mint-config-update -d "sleep 120 ; /usr/local/sbin/mint-config-update.sh"
|
||||
backup: yes
|
||||
validate: /bin/bash -n %s
|
||||
|
||||
- name: mint-config-update startmenu
|
||||
ansible.builtin.get_url:
|
||||
url: https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint-config-update.desktop
|
||||
@ -180,5 +197,10 @@
|
||||
|
||||
handlers:
|
||||
|
||||
- name: Restart signal-cli
|
||||
service:
|
||||
name: signal-cli
|
||||
state: restarted
|
||||
|
||||
- name: update-grub
|
||||
ansible.builtin.shell: update-grub
|
||||
|
Loading…
Reference in New Issue
Block a user