local/roles/system-info/tasks/Windows.yaml

59 lines
1.6 KiB
YAML

---
- name: install chocolatey packages
win_chocolatey:
name: openhardwaremonitor
state: latest
# - TODO: update config file
# C:\ProgramData\chocolatey\lib\OpenHardwareMonitor\tools\OpenHardwareMonitor\OpenHardwareMonitor.config
- name: create OpenHardwareMonitor scheduled task
win_scheduled_task:
path: Benie
name: OpenHardwareMonitor
state: present
enable: true
triggers:
- type: logon
enabled: true
- type: registration
enabled: true
actions:
- path: '{{openhardwaremonitor_exe}}'
working_directory: '{{openhardwaremonitor_install_dir}}'
disallow_start_if_on_batteries: false
stop_if_going_on_batteries: false
execution_time_limit: PT0S
logon_type: interactive_token
multiple_instances: 3
run_level: highest
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