https://github.com/artcom/ansible-role-win-repo-app
Ansible role for installing and configuring a Windows exe from a repo artifact
https://github.com/artcom/ansible-role-win-repo-app
Last synced: 6 months ago
JSON representation
Ansible role for installing and configuring a Windows exe from a repo artifact
- Host: GitHub
- URL: https://github.com/artcom/ansible-role-win-repo-app
- Owner: artcom
- License: mit
- Created: 2022-01-10T14:05:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-16T09:09:23.000Z (about 2 years ago)
- Last Synced: 2025-05-17T19:37:59.885Z (about 1 year ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-role-win-repo-app
Ansible role for installing and configuring a Windows exe from a GitHub release artifact
## Role Variables
Available variables are listed below, along with values from [defaults/main.yml](defaults/main.yml):
```yaml
app_repo: null
app_name: null
app_version: null
artifact_name: "{{ app_name }}-{{ app_version }}"
download_directory: "{{ ansible_user_dir }}\\Downloads"
extract_directory: "{{ download_directory }}\\{{ app_name }}-{{ app_version }}"
artifact_subdirectory: ""
install_directory: "C:\\Program Files\\{{ app_name }}"
config_file: null
config_directory: null
config_file_path: null
```
When a `config_file` template is defined the `config_direcotry` and `config_file_path` variables must be set.
Required variables (role will fail if the variables are not set):
```yaml
app_repo: "string"
app_name: "string"
app_version: "string"
```
## Example Playbook
```yaml
- name: install app
hosts: all
handlers:
- name: reboot
ansible.windows.win_reboot:
tasks:
- name: install my-app
ansible.builtin.include_role:
name: ansible-role-win-repo-app
vars:
app_name: my-app
app_version: v1.0.0
app_repo: my-user/my-app
config_file: config.json.j2
config_directory: "{{ ansible_user_dir }}\\{{ app_name }}_config"
config_file_path: "{{ config_directory }}\\config.json"
```