๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/workstation/tasks/win_icon.yml

15 lines
428 B

2 years ago
- name: download icon to remote host
win_copy:
src: "{{ item.icon }}"
dest: '{{ ansible_env.SystemRoot }}\{{ item.icon }}'
force: yes
- name: create shortcut
win_shortcut:
description: "{{ item.description | d(omit) }}"
dest: '{{ ansible_env.PUBLIC }}\Desktop\{{ item.name }}.lnk'
icon: '{{ ansible_env.SystemRoot }}\{{ item.icon }}'
src: "{{ item.dest }}"
state: present
changed_when: no