Compare commits
No commits in common. "f2d678ab019aed41dfccc83eaae6f529336783a2" and "8fae111d0ead4cc46f5cbc95e7900d6c6dbd6115" have entirely different histories.
f2d678ab01
...
8fae111d0e
@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: restart system-info
|
||||
systemd:
|
||||
name: system-info
|
||||
scope: user
|
||||
daemon_reload: true
|
||||
state: restarted
|
@ -12,21 +12,10 @@
|
||||
state: directory
|
||||
dest: ~/.config/systemd/user
|
||||
|
||||
- set_fact:
|
||||
SYSTEM_INFO_SCRIPT_DIR: '{{ansible_env.HOME}}/.config/tmux/system-info'
|
||||
|
||||
- when: '"WSL" not in ansible_kernel'
|
||||
set_fact:
|
||||
SYSTEM_INFO_SCRIPT: '{{SYSTEM_INFO_SCRIPT_DIR}}/system-info-Linux.sh'
|
||||
- when: '"WSL" in ansible_kernel'
|
||||
set_fact:
|
||||
SYSTEM_INFO_SCRIPT: '{{SYSTEM_INFO_SCRIPT_DIR}}/system-info-WSL.sh'
|
||||
|
||||
- name: install system-info systemd unit
|
||||
template:
|
||||
src: templates/system-info.service.j2
|
||||
copy:
|
||||
src: ~/.config/tmux/system-info/system-info.service
|
||||
dest: ~/.config/systemd/user/system-info.service
|
||||
notify: restart system-info
|
||||
|
||||
- name: enable system-info service
|
||||
systemd:
|
||||
|
@ -30,29 +30,29 @@
|
||||
start_when_available: true
|
||||
wake_to_run: false
|
||||
|
||||
# - name: create system-info-WSL.sh scheduled task
|
||||
# win_scheduled_task:
|
||||
# path: Benie
|
||||
# name: system-info-WSL.sh
|
||||
# state: present
|
||||
# enable: true
|
||||
# triggers:
|
||||
# - type: logon
|
||||
# enabled: true
|
||||
# - type: registration
|
||||
# enabled: true
|
||||
# actions:
|
||||
# - path: '{{wsl_exe}}'
|
||||
# arguments: '-d Debian -e /home/benie/.config/tmux/system-info/system-info-WSL.sh'
|
||||
# disallow_start_if_on_batteries: false
|
||||
# stop_if_going_on_batteries: false
|
||||
# execution_time_limit: PT0S
|
||||
# logon_type: password
|
||||
# username: '{{ansible_user}}'
|
||||
# password: '{{ansible_password}}'
|
||||
# multiple_instances: 3
|
||||
# run_level: limited
|
||||
# start_when_available: true
|
||||
# wake_to_run: false
|
||||
- name: create system-info-WSL.sh scheduled task
|
||||
win_scheduled_task:
|
||||
path: Benie
|
||||
name: system-info-WSL.sh
|
||||
state: present
|
||||
enable: true
|
||||
triggers:
|
||||
- type: logon
|
||||
enabled: true
|
||||
- type: registration
|
||||
enabled: true
|
||||
actions:
|
||||
- path: '{{wsl_exe}}'
|
||||
arguments: '-d Debian -e /home/benie/.config/tmux/system-info/system-info-WSL.sh'
|
||||
disallow_start_if_on_batteries: false
|
||||
stop_if_going_on_batteries: false
|
||||
execution_time_limit: PT0S
|
||||
logon_type: password
|
||||
username: '{{ansible_user}}'
|
||||
password: '{{ansible_password}}'
|
||||
multiple_instances: 3
|
||||
run_level: limited
|
||||
start_when_available: true
|
||||
wake_to_run: false
|
||||
|
||||
# - TODO: configure firewall
|
||||
|
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=System Info
|
||||
|
||||
[Service]
|
||||
ExecStart={{SYSTEM_INFO_SCRIPT}}
|
||||
Environment=LC_ALL=C.UTF-8
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -1,9 +1,4 @@
|
||||
---
|
||||
- name: create wsl.conf
|
||||
template:
|
||||
src: templates/wsl.conf.j2
|
||||
dest: /etc/wsl.conf
|
||||
|
||||
- name: install apt packages
|
||||
become: true
|
||||
apt:
|
||||
@ -22,13 +17,6 @@
|
||||
src: templates/hosts.j2
|
||||
dest: /etc/ansible/hosts
|
||||
|
||||
- name: create binfmt_misc config file
|
||||
become: true
|
||||
template:
|
||||
src: templates/binfmt_misc.j2
|
||||
dest: /usr/lib/binfmt.d/WSLInterop.conf
|
||||
notify: restart systemd-binfmt
|
||||
|
||||
- name: create external directory
|
||||
file:
|
||||
dest: external
|
||||
|
Loading…
x
Reference in New Issue
Block a user