diff --git a/lmn-client.yml b/lmn-client.yml index cfb70ee..8e66529 100644 --- a/lmn-client.yml +++ b/lmn-client.yml @@ -112,7 +112,29 @@ ansible_board_vendor == "LENOVO" and (ansible_board_name == "312D" or ansible_board_name == "312A") -## Temporarily fix boot order + - name: Install customized CodeBlocks packages + block: + - name: Check for old CodeBlocks + command: + cmd: dpkg -l codeblocks + register: codeblocks_version + changed_when: False + + - name: Download codeblocks zip archive + ansible.builtin.get_url: + url: "http://livebox.pn.steinbeis.schule/codeblocks/CodeBlocks.zip" + dest: /tmp/CodeBlocks.zip + use_proxy: False + when: codeblocks_version.stdout is not search('svn13456') + + - name: Unpack zip archive and install packages manually + shell: + cmd: unzip -d /tmp/cb/ CodeBlocks.zip && dpkg -i cb/*.deb + chdir: /tmp/ + when: codeblocks_version.stdout is not search('svn13456') + when: inventory_hostname in groups.PCroom + + ## Temporarily fix boot order - name: Check for the buggy kernel stat: path: /boot/vmlinuz-6.1.0-17-amd64