Initial commit erasing history
This commit is contained in:
parent
e04f86fd9a
commit
7d8751ffe8
712 changed files with 7348 additions and 0 deletions
4
roles/7zip/tasks/main.yml
Normal file
4
roles/7zip/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
4
roles/7zip/tasks/main_lin.yml
Normal file
4
roles/7zip/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: Install 7zip
|
||||
apt:
|
||||
name: 7zip
|
||||
state: latest
|
18
roles/7zip/tasks/main_win.yml
Normal file
18
roles/7zip/tasks/main_win.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- name: Install 7-zip
|
||||
win_chocolatey:
|
||||
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…
Add table
Add a link
Reference in a new issue