@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
26 lines (22 loc) • 1.01 kB
YAML
- name: "Ensure {{ app_name }} is installed"
chocolatey.chocolatey.win_chocolatey:
name: intellijidea-community
state: "{{ app_state | default('present') }}"
- name: Fetch the release information
become: false
ansible.windows.win_uri:
url: "https://community.chocolatey.org/packages/intellijidea-community"
return_content: true
register: intellij_release
- name: "Determine the Plugins folder path based on the version of {{ app_name }} installed"
set_fact:
plugins_folder: "{{ plugin_folder_prefix + intellij_release | regex_search('v (\\d*\\.\\d*)') | replace('v ','') + '\\plugins' }}"
colors_folder: "{{ plugin_folder_prefix + intellij_release | regex_search('v (\\d*\\.\\d*)') | replace('v ','') + '\\colors' }}"
- name: Run generic tasks
include_tasks: config-Windows.yml
loop: "{{ user_configs }}"
loop_control:
label: "{{ user.username }}"
loop_var: user
when: (user.system is not defined) or ((user.system is defined) and (not user.system))