mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 12:38:11 +00:00
bitwarden
This commit is contained in:
parent
3dce3ca757
commit
ccbe4080bf
@ -13,25 +13,25 @@
|
||||
set_fact:
|
||||
wifi_adapter: '{{ item }}'
|
||||
loop: '{{ ansible_facts.interfaces }}'
|
||||
when: 'item.startswith("eno")'
|
||||
when: 'item.startswith("enp")'
|
||||
|
||||
- name: Creating config
|
||||
- name: Creating a file with content
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
|
||||
dest: "/etc/systemd/system/wol.service"
|
||||
copy:
|
||||
dest: "//etc/systemd/system/wol.service"
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Enable Wake On Lan
|
||||
[Unit]
|
||||
Description=Enable Wake On Lan
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart = /usr/sbin/ethtool --change {{ wifi_adapter }} wol g
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart = /usr/sbin/ethtool --change {{ wifi_adapter }} wol g
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
owner: root
|
||||
mode: '0744'
|
||||
|
||||
- name: Restart service wol, in all cases
|
||||
ansible.builtin.service:
|
||||
name: wol
|
||||
|
@ -2,3 +2,7 @@
|
||||
ansible.builtin.apt:
|
||||
upgrade: full
|
||||
become: true
|
||||
- name: Upgrade flatpack
|
||||
ansible.builtin.command: flatpak update -y
|
||||
become: true
|
||||
when: inventory_hostname == 'morefine.home.lan'
|
Loading…
x
Reference in New Issue
Block a user