Сергей Антоненко 2 lat temu
rodzic
commit
f6d0c1a96f

+ 2 - 1
.gitignore

@@ -1,2 +1,3 @@
 test
-group_vars
+group_vars
+local

+ 0 - 29
change-wallpapers.yml

@@ -1,29 +0,0 @@
----
-    - hosts: kc41
-      vars:
-        release: focal
-        winetricks_patch: /usr/bin
-        prefix_dir: /usr/prefixes
-        prefix_path: /usr/prefixes/msapps
-        user_permission: student
-        officepath: /home/vidikon/ANSIBLE/Office2013.tar.gz
-      become: true
-      gather_facts: no
-      tasks:
-
-        - name: Copy wallpaper
-          ansible.builtin.copy:
-            src: /home/vidikon/ANSIBLE/software-playbooks/files/wallpaper.jpg
-            dest: /home/
-            owner: "{{ user_permission }}"
-            group: "{{ user_permission }}"
-        #1000 для pc9, 1001 для остальных
-        - name: Set wallpaper
-          vars:
-            DISPLAY: ":0"
-          ansible.builtin.shell: "sudo -H -u student DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id {{ user_permission }} | awk -F '=' '{print $2}' | awk -F '(' '{print $1}')/bus DISPLAY=:0 gsettings set org.cinnamon.desktop.background picture-uri 'file:///home/wallpaper.jpg'"
-        - name: Ensure a job that runs at 2 and 5 exists. Creates an entry like "0 5,2 * * ls -alh > /dev/null"
-          ansible.builtin.cron:
-            name: "check wallpaper"
-            minute: "*/5"
-            job: "sudo -H -u student DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id {{ user_permission }} | awk -F '=' '{print $2}' | awk -F '(' '{print $1}')/bus DISPLAY=:0 gsettings set org.cinnamon.desktop.background picture-uri 'file:///home/wallpaper.jpg'"  

+ 0 - 53
copy-office-2010.yml

@@ -1,53 +0,0 @@
----
-    - 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 }}"        
-        
-    
-
-    
-    

+ 0 - 44
install-anydesk.yml

@@ -1,44 +0,0 @@
----
-    - hosts: kc41
-      vars:
-        release: focal
-        winetricks_patch: /usr/bin
-        prefix_dir: /usr/prefixes
-        prefix_path: /usr/prefixes/msapps
-        user_permission: student
-        officepath: /home/vidikon/ANSIBLE/Office2013.tar.gz
-      #become: true
-      gather_facts: no
-      tasks:
-
-       
-    
-        - name: Copy anydesk deb
-          become: true
-          block:
-            - name: Create a directory if it does not exist
-              ansible.builtin.file:
-                path: /tmp/anydesk
-                owner: "{{ user_permission }}"
-                group: "{{ user_permission }}"
-                state: directory
-            - name: Copy Anydesk
-              ansible.builtin.copy:
-                src: "/home/vidikon/ANSIBLE/deb/anydesk_6.3.0-1_amd64.deb"
-                dest: "/tmp/anydesk/"
-                owner: "{{ user_permission }}"
-                group: "{{ user_permission }}"
-                mode: u=rwx,g=rwx,o=r
-        - name: Install the build dependencies for package "foo"
-          become: true
-          ansible.builtin.apt:
-            deb: /tmp/anydesk/anydesk_6.3.0-1_amd64.deb
-        - name: Install dependencies
-          become: true
-          ansible.builtin.shell: apt install -f    
-
-
-
-
-    
-    

+ 0 - 53
install-arduino-ide.yml

@@ -1,53 +0,0 @@
----
-    - hosts: kc41
-      vars:
-        release: focal
-        winetricks_patch: /usr/bin
-        prefix_dir: /usr/prefixes
-        prefix_path: /usr/prefixes/msapps
-        user_permission: student
-        officepath: /home/vidikon/ANSIBLE/Office2013.tar.gz
-      #become: true
-      gather_facts: no
-      tasks:
-
-       
-    
-        - name: Install Arduino IDE
-          become: true
-          block:
-            - name: Create a directory if it does not exist
-              ansible.builtin.file:
-                path: /usr/arduinoide/
-                owner: "{{ user_permission }}"
-                group: "{{ user_permission }}"
-                state: directory
-        #    - name: Unarchive a IDE that needs to be downloaded 
-        #      ansible.builtin.unarchive:
-        #        src: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Linux_64bit.zip
-        #        dest: /usr/arduinoide/
-        #        remote_src: yes
-        #    - name: Create symbolic link 
-        #      ansible.builtin.file:
-        #        src: "/usr/arduinoide/arduino-ide_2.2.1_Linux_64bit/arduino-ide"
-        #        dest: "/usr/bin/arduino-ide"
-        #        state: link
-
-            - name: Grant user permission for access ttyACM
-              ansible.builtin.shell: usermod -a -G dialout {{ user_permission }}    
-          #  - name: Run installer Arduino IDE
-          #    ansible.builtin.shell: "sh export DISPLAY=:0; sh /usr/bin/arduino-ide &"
-            - name: Create a directory if it does not exist
-              ansible.builtin.file:
-                path: "/home/student/Рабочий стол/cc.arduino.arduinoide.desktop"
-                state: absent
-            - name: Copy IDE icon file with owner and permission
-              ansible.builtin.copy:
-                src: "/home/vidikon/ANSIBLE/software-playbooks/files/arduino-ide.desktop"
-                dest: "/home/student/Рабочий стол/"
-                owner: "{{ user_permission }}"
-                group: "{{ user_permission }}"
-                mode: u=rwx,g=rwx,o=r
-
-    
-    

+ 0 - 38
install-software-repo.yml

@@ -1,38 +0,0 @@
----
-    - hosts: pc9
-      vars:
-        release: focal
-        winetricks_patch: /usr/bin
-        prefix_dir: /usr/prefixes
-        prefix_path: /usr/prefixes/msapps
-        user_permission: student
-        officepath: /home/vidikon/ANSIBLE/Office2013.tar.gz
-      become: true
-      gather_facts: no
-      tasks:
-
-#        - name: add ppa libreoffice
-#          ansible.builtin.apt_repository:
-#            repo: ppa:libreoffice/ppa
-#            codename: "{{ release }}"
-#            state: absent
-        - name: add ppa gimp
-          ansible.builtin.apt_repository:
-            repo: ppa:ubuntuhandbook1/gimp
-            codename: "{{ release }}"
-#            state: absent
-   #     - name: dpkg --configure -a
-   #       shell: 
-   #         cmd: dpkg --configure -a
-        - name: install software
-          ansible.builtin.apt: 
-            pkg: 
-              - libreoffice
-              - gimp
-        - name: install software
-          ansible.builtin.apt: 
-            pkg: 
-              - libreoffice-grammarcheck-ru
-              - libreoffice-help-ru 
-              - libreoffice-l10n-ru
-              - libreoffice-lightproof-ru-ru

+ 0 - 66
install_onlyoffice.yml

@@ -1,66 +0,0 @@
----
-- hosts: local
-  tasks:
-
-    - name: create gpg key Onlyoffice
-      shell: 
-        cmd: gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
-
-    - name: install gpg key Onlyoffice
-      file: 
-        path: /tmp/onlyoffice.gpg
-        state: touch
-        owner: root
-        group: root
-        mode: '644'
-    - name: copy key Onlyoffice
-      copy:
-        remote_src: yes
-        src: /tmp/onlyoffice.gpg
-        dest: /etc/apt/trusted.gpg.d/
-
-    - name: add Onlyoffcie to sources.list
-      ansible.builtin.apt_repository:
-        repo: deb https://download.onlyoffice.com/repo/debian squeeze main
-        state: present
-        filename: onlyoffice.list
-
-    - name: install software-properties-common deb
-      ansible.builtin.apt: 
-        pkg: 
-        - software-properties-common
-        - gtk2-engines-pixbuf
-        - gtk2-engines-murrine
-        
-   
-    - name: install Onlyoffice deb
-      ansible.builtin.apt: 
-        pkg: 
-        - onlyoffice-desktopeditors
-        update_cache: yes
-
-
-    - name: remove Libreoffice
-      ansible.builtin.apt:
-        name: libreoffice*
-        state: absent
-#    - name: change theme to Pop
- #     shell: 
-#        cmd: "{{ item }}"
-#      loop: 
-#        - gsettings set org.cinnamon.theme name 'pop-gtk-theme'
-#        - gsettings set org.gnome.desktop.interface icon-theme "pop-icon-theme"
-
-#    - name: clear useless package
-#      ansible.builtin.apt: 
-#        autoclean: yes
-    - name: copy Onlyoffcie icon
-      ansible.builtin.copy: 
-        src: /tmp/git/files/onlyoffice-desktopeditors.desktop
-        dest: /home/user/Рабочий\ стол/
-        owner: user 
-        group: user
-        mode: u=rw,g=rw,o=r
-
-
-