winroom: add 7zip file associations
This commit is contained in:
parent
f22807b136
commit
feead7ed0e
|
@ -1,3 +1,18 @@
|
||||||
- name: Install 7-zip
|
- name: Install 7-zip
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: 7zip
|
name: 7zip
|
||||||
|
register: install
|
||||||
|
|
||||||
|
- when: install.changed
|
||||||
|
block:
|
||||||
|
- name: Create 7-zip filetype
|
||||||
|
win_command: cmd.exe /c ftype 7-zip=%ProgramFiles%\7-zip\7zFM.exe
|
||||||
|
|
||||||
|
- name: Associate 7-zip with archive filetypes
|
||||||
|
win_command: cmd.exe /c assoc .{{ item }}=7-zip
|
||||||
|
loop:
|
||||||
|
- gz
|
||||||
|
- tar
|
||||||
|
- targz
|
||||||
|
- rar
|
||||||
|
- 7z
|
||||||
|
|
Loading…
Reference in a new issue