42 lines
1,002 B
YAML
42 lines
1,002 B
YAML
# TODO install Notepad++
|
|
# ansible_os_family: "Windows" / "Debian"
|
|
- name: Install notepad++
|
|
debug:
|
|
msg: "Install Notepad++"
|
|
#- name: Install Wine
|
|
# apt:
|
|
# name: wine-development
|
|
# state: latest
|
|
#- name: Install Wine binfmt support
|
|
# apt:
|
|
# name: wine-binfmt
|
|
# state: latest
|
|
|
|
- name: Create dir
|
|
file:
|
|
path: /opt/notepad++
|
|
state: directory
|
|
|
|
- name: Download and unpack Notepad++
|
|
unarchive:
|
|
src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8.5/npp.8.8.5.portable.x64.zip
|
|
dest: /opt/notepad++
|
|
remote_src: yes
|
|
|
|
- name: Install icon
|
|
block:
|
|
- file:
|
|
path: /usr/local/share/icons
|
|
state: directory
|
|
- copy:
|
|
src: notepad++.png
|
|
dest: /usr/local/share/icons/notepad++.png
|
|
|
|
- name: Create .desktop file
|
|
block:
|
|
- file:
|
|
path: /usr/local/share/applications
|
|
state: directory
|
|
- copy:
|
|
dest: /usr/local/share/applications/notepad++.desktop
|
|
src: notepad++.desktop
|