|
|
@@ -1,10 +1,10 @@
|
|
|
---
|
|
|
-- hosts: userps
|
|
|
+- hosts: test_group
|
|
|
vars:
|
|
|
- release: focal
|
|
|
+ release: jammy
|
|
|
winetricks_patch: /usr/bin
|
|
|
prefix_dir: /usr/prefixes
|
|
|
- prefix_path: /usr/prefixes/msapps1
|
|
|
+ prefix_path: /usr/prefixes/msapps
|
|
|
user_permission: oktadmin
|
|
|
prefix_user_permission: student
|
|
|
officepath: /home/vidikon/ANSIBLE/Office2013.tar.gz
|
|
|
@@ -56,18 +56,24 @@
|
|
|
ansible.builtin.apt:
|
|
|
pkg:
|
|
|
- winehq-stable
|
|
|
-# - winetricks
|
|
|
+ - winetricks
|
|
|
+ - winbind
|
|
|
+ - playonlinux
|
|
|
+ - smbclient
|
|
|
update_cache: yes
|
|
|
- - name: Copy winetrics file with owner and permission
|
|
|
- ansible.builtin.copy:
|
|
|
- src: "./scripts/winetricks"
|
|
|
- owner: "{{ user_permission }}"
|
|
|
- group: "{{ user_permission }}"
|
|
|
- dest: /usr/bin/winetricks
|
|
|
- mode: u=rwx,g=rwx,o=wrx
|
|
|
when: skipstep == "true"
|
|
|
|
|
|
|
|
|
+# - name: Copy winetrics file with owner and permission
|
|
|
+# become: true
|
|
|
+# ansible.builtin.copy:
|
|
|
+# src: "./scripts/winetricks"
|
|
|
+# owner: "{{ user_permission }}"
|
|
|
+# group: "{{ user_permission }}"
|
|
|
+# dest: /usr/bin/winetricks
|
|
|
+# mode: u=rwx,g=rwx,o=wrx
|
|
|
+
|
|
|
+
|
|
|
- name: Create prefix dir
|
|
|
become: true
|
|
|
block:
|
|
|
@@ -82,18 +88,16 @@
|
|
|
- name: Create prefix and install lib
|
|
|
block:
|
|
|
- name: Create Office prefix
|
|
|
- ansible.builtin.shell: WINEARCH=win32 WINEPREFIX={{ prefix_path }} wineboot -u
|
|
|
- # - name: Download font
|
|
|
- # ansible.builtin.shell: WINEARCH=win32 WINEPREFIX={{ prefix_path }} {{ winetricks_patch }}/winetricks corefonts allfonts
|
|
|
- # register: fontinstall
|
|
|
- # - debug: msg="{{ fontinstall }}"
|
|
|
+ ansible.builtin.shell: wineboot -u
|
|
|
- name: Download lib
|
|
|
- ansible.builtin.shell: WINEARCH=win32 WINEPREFIX={{ prefix_path }} {{ winetricks_patch }}/winetricks msxml3 msxml4 msxml6 vcrun2015 dotnet40 gdiplus riched30 mfc42 mfc140 vcrun6
|
|
|
+ ansible.builtin.shell: "{{ winetricks_patch }}/winetricks cmd corefonts msxml6 riched20 gdiplus atmlib msxml3 vcrun2008 vcrun2010 vcrun2012 fontsmooth-rgb gecko"
|
|
|
register: libinstall
|
|
|
- debug: msg="{{ libinstall }}"
|
|
|
environment:
|
|
|
- HTTP_PROXY: http://78.47.186.43:6666
|
|
|
- #HTTPS_PROXY:
|
|
|
+ WINEARCH: win32
|
|
|
+ WINEPREFIX: "{{ prefix_path }}"
|
|
|
+# http_proxy: socks5://vidikon:{{ sockspass }}@5.187.2.63:55448
|
|
|
+# https_proxy: socks5://vidikon:{{ sockspass }}@5.187.2.63:55448
|
|
|
|
|
|
|
|
|
|