- hosts: localhost remote_user: root - name: Update and Upgrade Ubuntu apt: upgrade: yes update_cache: yes cache_valid_time: 86400 #One day - name: Remove thunderbird package apt: name: thunderbird state: absent - name: Add Packages apt: pkg: - chromium-browser - chromium-browser-l10n - chromium-codecs-ffmpeg - libreoffice - libreoffice-l10n-de - libreoffice-help-de - gimp - default-jre - wget - libglib2.0-dev-bin - vlc - ffmpeg - git - unzip - name: Load Background Image ansible.builtin.copy: src: /root/media/new_background.jpg dest: /usr/share/backgrounds/new_background.jpg owner: root group: root mode: '0644' - name: Get Backgroundchanger ansible.builtin.copy: src: /root/media/ubuntu-gdm-set-background dest: /root/change-gdm-background owner: root group: root mode: 'a+x' - name: Change Background GDM ansible.builtin.command: chdir: /root cmd: ./change-gdm-background --image /usr/share/backgrounds/new_background.jpg - name: Restart GDM ansible.builtin.command: cmd: service gdm restart tasks: - name: Check Arduino Install stat: path: "/etc/arduino-ide/" register: arduino_path - name: Install eclipse community.general.snap: name: eclipse classic: yes - name: Install Visual Studio Code community.general.snap: name: code classic: yes - name: Install Greenfoot community.general.snap: name: greenfoot - name: Install Filius ansible.builtin.command: apt install /tmp/filius.deb -y - name: Download BlueJ ansible.builtin.copy: src: /root/media/BlueJ-linux-520.deb dest: /tmp/bluej.deb mode: '0770' - name: Install BlueJ ansible.builtin.command: apt install /tmp/bluej.deb -y - name: Download Arduino when: not arduino_path.stat.exists ansible.builtin.copy: src: /root/media/arduino-ide_2.1.1_Linux_64bit.zip dest: /tmp/arduino.zip mode: '0770' - name: Unzip archive for arduino when: not arduino_path.stat.exists ansible.builtin.command: chdir: /tmp/ cmd: unzip arduino.zip -d /etc/arduino-ide/ - name: Copy Icon for Arduino-IDE ansible.builtin.copy: src: /root/media/arduino-icon.png dest: /etc/arduino-ide/icon.png mode: '0777' - name: Copy Desktop Entry for Arduino-IDE ansible.builtin.copy: src: /root/media/arduino-ide.desktop dest: /usr/share/applications/arduino-ide.desktop mode: '0644' - name: Update Desktop Database ansible.builtin.command: update-desktop-database - name: Copy UDEV Rule ansible.builtin.copy: src: /root/media/50-myusb.rules dest: /etc/udev/rules.d/50-myusb.rules mode: '0644'