Install customized CodeBlocks packages in all PC rooms.
This commit is contained in:
parent
94b6aaf640
commit
8856b74e91
1 changed files with 23 additions and 1 deletions
|
@ -112,7 +112,29 @@
|
||||||
ansible_board_vendor == "LENOVO" and
|
ansible_board_vendor == "LENOVO" and
|
||||||
(ansible_board_name == "312D" or ansible_board_name == "312A")
|
(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
|
- name: Check for the buggy kernel
|
||||||
stat:
|
stat:
|
||||||
path: /boot/vmlinuz-6.1.0-17-amd64
|
path: /boot/vmlinuz-6.1.0-17-amd64
|
||||||
|
|
Loading…
Add table
Reference in a new issue