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
|
state: directory
|
||||||
dest: ~/.config/systemd/user
|
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
|
- name: install system-info systemd unit
|
||||||
template:
|
copy:
|
||||||
src: templates/system-info.service.j2
|
src: ~/.config/tmux/system-info/system-info.service
|
||||||
dest: ~/.config/systemd/user/system-info.service
|
dest: ~/.config/systemd/user/system-info.service
|
||||||
notify: restart system-info
|
|
||||||
|
|
||||||
- name: enable system-info service
|
- name: enable system-info service
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -30,29 +30,29 @@
|
|||||||
start_when_available: true
|
start_when_available: true
|
||||||
wake_to_run: false
|
wake_to_run: false
|
||||||
|
|
||||||
# - name: create system-info-WSL.sh scheduled task
|
- name: create system-info-WSL.sh scheduled task
|
||||||
# win_scheduled_task:
|
win_scheduled_task:
|
||||||
# path: Benie
|
path: Benie
|
||||||
# name: system-info-WSL.sh
|
name: system-info-WSL.sh
|
||||||
# state: present
|
state: present
|
||||||
# enable: true
|
enable: true
|
||||||
# triggers:
|
triggers:
|
||||||
# - type: logon
|
- type: logon
|
||||||
# enabled: true
|
enabled: true
|
||||||
# - type: registration
|
- type: registration
|
||||||
# enabled: true
|
enabled: true
|
||||||
# actions:
|
actions:
|
||||||
# - path: '{{wsl_exe}}'
|
- path: '{{wsl_exe}}'
|
||||||
# arguments: '-d Debian -e /home/benie/.config/tmux/system-info/system-info-WSL.sh'
|
arguments: '-d Debian -e /home/benie/.config/tmux/system-info/system-info-WSL.sh'
|
||||||
# disallow_start_if_on_batteries: false
|
disallow_start_if_on_batteries: false
|
||||||
# stop_if_going_on_batteries: false
|
stop_if_going_on_batteries: false
|
||||||
# execution_time_limit: PT0S
|
execution_time_limit: PT0S
|
||||||
# logon_type: password
|
logon_type: password
|
||||||
# username: '{{ansible_user}}'
|
username: '{{ansible_user}}'
|
||||||
# password: '{{ansible_password}}'
|
password: '{{ansible_password}}'
|
||||||
# multiple_instances: 3
|
multiple_instances: 3
|
||||||
# run_level: limited
|
run_level: limited
|
||||||
# start_when_available: true
|
start_when_available: true
|
||||||
# wake_to_run: false
|
wake_to_run: false
|
||||||
|
|
||||||
# - TODO: configure firewall
|
# - 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
|
- name: install apt packages
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
@ -22,13 +17,6 @@
|
|||||||
src: templates/hosts.j2
|
src: templates/hosts.j2
|
||||||
dest: /etc/ansible/hosts
|
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
|
- name: create external directory
|
||||||
file:
|
file:
|
||||||
dest: external
|
dest: external
|
||||||
|
Loading…
x
Reference in New Issue
Block a user