|
|
@@ -1,33 +1,64 @@
|
|
|
---
|
|
|
- hosts: local
|
|
|
vars:
|
|
|
- release: jammy
|
|
|
+ release: focal
|
|
|
+ become: true
|
|
|
+ gather_facts: no
|
|
|
tasks:
|
|
|
+# - name: Upgrade all packets
|
|
|
+# ansible.builtin.apt:
|
|
|
+# 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
|
|
|
ansible.builtin.apt:
|
|
|
pkg:
|
|
|
- software-properties-common
|
|
|
- - gtk2-engines-pixbuf
|
|
|
- - gtk2-engines-murrine
|
|
|
+ - dirmngr
|
|
|
+ - ca-certificates
|
|
|
+ - apt-transport-https
|
|
|
+ - curl
|
|
|
|
|
|
-
|
|
|
- - name: add Wine to sources.list
|
|
|
- ansible.builtin.apt_repository:
|
|
|
- repo: deb http://dl.winehq.org/wine-builds/ubuntu/ {{ release }} main
|
|
|
- state: present
|
|
|
- filename: wine-stable.list
|
|
|
+
|
|
|
+ - name: One way to avoid apt_key once it is removed from your distro
|
|
|
+ block:
|
|
|
+ - name: add key
|
|
|
+ ansible.builtin.shell: curl -s https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/winehq.gpg > /dev/null
|
|
|
+
|
|
|
+ #- name: somerepo |no apt key
|
|
|
+ # ansible.builtin.get_url:
|
|
|
+ # url: https://dl.winehq.org/wine-builds/winehq.key
|
|
|
+ # dest: /usr/share/keyrings/winehq.gpg
|
|
|
+
|
|
|
+ - name: add repo
|
|
|
+ ansible.builtin.apt_repository:
|
|
|
+ repo: "deb [signed-by=/usr/share/keyrings/winehq.gpg] http://dl.winehq.org/wine-builds/ubuntu/ {{ release }} main"
|
|
|
+ state: present
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- name: install Wine deb
|
|
|
ansible.builtin.apt:
|
|
|
pkg:
|
|
|
- - wine
|
|
|
+ - wine-stable
|
|
|
+ - winetricks
|
|
|
update_cache: yes
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ - name: Copy Offcie 2019 archive file with owner and permission
|
|
|
+ ansible.builtin.copy:
|
|
|
+ src: /home/vidikon/2019x64.tar.gz
|
|
|
+ dest: /tmp/2019x64.tar.gz
|
|
|
+ owner: user
|
|
|
+ group: user
|
|
|
+ mode: u=rw,g=r,o=r
|
|
|
+
|
|
|
+ - name: Extract Office.tar.gz into /tmp
|
|
|
+ ansible.builtin.shell: tar xvfz /tmp/2019x64.tar.gz
|
|
|
+
|
|
|
+ - name: Create Office prefix
|
|
|
+ ansible.builtin.shell: env WINEPREFIX=~/.msoffice wineboot -u
|
|
|
|