|
|
@@ -1,8 +1,8 @@
|
|
|
---
|
|
|
-- hosts: local
|
|
|
+- hosts: test_group
|
|
|
vars:
|
|
|
release: focal
|
|
|
- winetricks_patch: /usr/bin/
|
|
|
+ winetricks_patch: /usr/bin
|
|
|
prefix_dir: /usr/prefixes
|
|
|
prefix_path: /usr/prefixes/msoffice32
|
|
|
user_permission: user
|
|
|
@@ -15,9 +15,9 @@
|
|
|
# name: "*"
|
|
|
# state: latest
|
|
|
|
|
|
- # - name: wine (add architecture)
|
|
|
- # shell:
|
|
|
- # cmd: dpkg --add-architecture i386
|
|
|
+ - name: wine (add architecture)
|
|
|
+ shell:
|
|
|
+ cmd: dpkg --add-architecture i386
|
|
|
|
|
|
- name: install software-properties-common deb
|
|
|
become: true
|
|
|
@@ -56,11 +56,11 @@
|
|
|
- name: Create prefix dir
|
|
|
become: true
|
|
|
block:
|
|
|
- - name: download winetricks
|
|
|
- ansible.builtin.get_url:
|
|
|
- url: https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
|
|
|
- dest: "{{ winetricks_patch }}/winetricks"
|
|
|
- mode: '0775'
|
|
|
+ # - name: download winetricks
|
|
|
+ # ansible.builtin.get_url:
|
|
|
+ # url: https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
|
|
|
+ # dest: "{{ winetricks_patch }}/winetricks"
|
|
|
+ # mode: '0775'
|
|
|
- name: Create a directory if it does not exist
|
|
|
ansible.builtin.file:
|
|
|
path: "{{ prefix_dir }}"
|
|
|
@@ -71,10 +71,12 @@
|
|
|
block:
|
|
|
- name: Create Office prefix
|
|
|
ansible.builtin.shell: env WINEARCH=win32 WINEPREFIX={{ prefix_path }} wineboot -u
|
|
|
- - name: Download font
|
|
|
- ansible.builtin.shell: env WINEARCH=win32 WINEPREFIX={{ prefix_path }} {{ winetricks_patch }}/winetricks corefonts allfonts
|
|
|
+ # - name: Download font
|
|
|
+ # ansible.builtin.shell: env WINEARCH=win32 WINEPREFIX={{ prefix_path }} {{ winetricks_patch }}/winetricks corefonts allfonts
|
|
|
- name: Download lib
|
|
|
ansible.builtin.shell: env WINEARCH=win32 WINEPREFIX={{ prefix_path }} {{ winetricks_patch }}/winetricks msxml3 msxml4 msxml6 vcrun2019 gdiplus riched30 mfc140 vcrun6
|
|
|
+ register: libinstall
|
|
|
+ - debug: msg="{{ libinstall }}"
|
|
|
|
|
|
#- name: Copy Offcie 2019 archive file with owner and permission
|
|
|
# ansible.builtin.copy:
|