https://github.com/artcom/ansible-role-win-autostart
Ansible role to create an autostart link for a command on a Windows 10 machine
https://github.com/artcom/ansible-role-win-autostart
Last synced: 4 months ago
JSON representation
Ansible role to create an autostart link for a command on a Windows 10 machine
- Host: GitHub
- URL: https://github.com/artcom/ansible-role-win-autostart
- Owner: artcom
- License: mit
- Created: 2020-09-30T10:55:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T12:07:56.000Z (about 2 years ago)
- Last Synced: 2025-05-17T19:37:14.360Z (about 1 year ago)
- Size: 10.7 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Win Autostart
Ansible role to create an autostart link for a command on a Windows 10 machine.
## Requirements
This role requires a reboot handler.
## Role Variables
Available variables are listed below, along with default values `(see defaults/main.yml)`:
```yaml
autostart_app_name: null
autostart_executable_path: null
autostart_user: null
autostart_description: "{{ autostart_app_name }}"
autostart_user_dir: "C:\\Users\\{{ autostart_user }}"
autostart_executable_arguments: ""
autostart_executable_working_directory: ""
```
Required variables (role will fail if the variables are not set):
```yaml
autostart_app_name: "string"
autostart_executable_path: "string"
autostart_user: "string"
```
The role will create an autostart link for `autostart_executable_path autostart_executable_arguments` for the `autostart_user` and a link to the `autostart_user` Desktop.
## Dependencies
- [check-required-variables](https://github.com/artcom/ansible-role-check-required-variables)
# Example Playbook
```yaml
- name: set up autostart
hosts: all
handlers:
- name: reboot
win_reboot:
tasks:
- import_role:
name: win-autostart
vars:
autostart_app_name: "my_app"
autostart_executable_path: "path_to_my_exe"
autostart_user: "{{ ansible_user }}"
```
## License
MIT