vidikon 2 anni fa
parent
commit
9c2d815579
3 ha cambiato i file con 26 aggiunte e 21 eliminazioni
  1. 2 1
      group_vars/test_group
  2. 1 1
      hosts
  3. 23 19
      install-wine.yml

+ 2 - 1
group_vars/test_group

@@ -2,4 +2,5 @@ ansible_user: oktadmin
 ansible_password: oktadmin 
 ansible_port: 22 
 ansible_become_pass: oktadmin 
-ansible_python_interpreter: /usr/bin/python3
+ansible_python_interpreter: /usr/bin/python3
+sockspass: umf6Q1oWlDWyh5LQA9mO

+ 1 - 1
hosts

@@ -1,5 +1,5 @@
 [test_group]
-userps ansible_host=192.168.122.64 
+userps ansible_host=192.168.122.78 
 
 [kc41]
 pc1 ansible_host=192.168.1.124

+ 23 - 19
install-wine.yml

@@ -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