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:
|
set_fact:
|
||||||
wifi_adapter: '{{ item }}'
|
wifi_adapter: '{{ item }}'
|
||||||
loop: '{{ ansible_facts.interfaces }}'
|
loop: '{{ ansible_facts.interfaces }}'
|
||||||
when: 'item.startswith("eno")'
|
when: 'item.startswith("enp")'
|
||||||
|
|
||||||
- name: Creating config
|
- name: Creating a file with content
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
copy:
|
||||||
|
dest: "//etc/systemd/system/wol.service"
|
||||||
dest: "/etc/systemd/system/wol.service"
|
|
||||||
content: |
|
content: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Enable Wake On Lan
|
Description=Enable Wake On Lan
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart = /usr/sbin/ethtool --change {{ wifi_adapter }} wol g
|
ExecStart = /usr/sbin/ethtool --change {{ wifi_adapter }} wol g
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=basic.target
|
||||||
owner: root
|
owner: root
|
||||||
mode: '0744'
|
mode: '0744'
|
||||||
|
|
||||||
- name: Restart service wol, in all cases
|
- name: Restart service wol, in all cases
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: wol
|
name: wol
|
||||||
|
@ -2,3 +2,7 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
upgrade: full
|
upgrade: full
|
||||||
become: true
|
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