| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- ---
- - hosts: kc41
- vars:
- release: focal
- winetricks_patch: /usr/bin
- prefix_dir: /usr/prefixes
- prefix_path: /usr/prefixes/msapps2010
- user_permission: oktadmin
- officepath: /home/vidikon/ANSIBLE/2010.Office.exe
- #become: true
- gather_facts: no
- tasks:
- - name: Copy Office files
- become: true
- block:
- # - name: Copy Offcie 2010 archive file with owner and permission
- # ansible.builtin.copy:
- # src: "{{ officepath }}"
- # dest: /tmp/Office2010.exe
- # owner: "{{ user_permission }}"
- # group: "{{ user_permission }}"
- # mode: u=rw,g=rw,o=r
- - name: Copy winetrics file with owner and permission
- ansible.builtin.copy:
- src: "/home/vidikon/ANSIBLE/software-playbooks/scripts/winetricks"
- owner: "{{ user_permission }}"
- group: "{{ user_permission }}"
- dest: /usr/bin/winetricks
- mode: u=rwx,g=rwx,o=wr
- - name: Create prefix
- block:
- - name: Create a directory if it does not exist
- become: true
- ansible.builtin.file:
- path: "{{ prefix_dir }}"
- owner: "{{ user_permission }}"
- group: "{{ user_permission }}"
- state: directory
- - 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 lib
- ansible.builtin.shell: env WINEARCH=win32 WINEPREFIX={{ prefix_path }} {{ winetricks_patch }}/winetricks msxml3 msxml4 msxml6 vcrun2015 dotnet40 gdiplus riched30 mfc42 mfc140 vcrun6
- register: libinstall
- - debug: msg="{{ libinstall }}"
-
-
-
-
|