|
35 | 35 | when: ansible_architecture == 'aarch64' |
36 | 36 |
|
37 | 37 | - name: Install core packages |
38 | | - include_tasks: |
| 38 | + ansible.builtin.include_tasks: |
39 | 39 | file: tasks/install_core_packages.yaml |
40 | 40 | apply: |
41 | 41 | tags: [core-packages] |
|
84 | 84 | - gstreamer1.0-icamera |
85 | 85 | update_cache: true |
86 | 86 |
|
87 | | - |
88 | | - |
89 | 87 | - name: "[BLOCK] Setting up DisplayLink drivers" |
90 | 88 | block: |
91 | 89 | - name: Download Synaptics repository keyring package |
92 | | - get_url: |
| 90 | + ansible.builtin.get_url: |
93 | 91 | url: "{{ synaptics_package_url }}" |
94 | 92 | dest: "{{ synaptics_package_path }}" |
95 | 93 | mode: '0644' |
| 94 | + # Remove the standalone DisplayLink driver if it was previously installed on the system. |
| 95 | + # This task ensures a clean state before installing a newer version or alternative display driver, |
| 96 | + # preventing conflicts between multiple DisplayLink installations. |
96 | 97 | - name: Remove standalone DisplayLink driver (if present) |
97 | 98 | ansible.builtin.apt: |
98 | 99 | name: displaylink |
99 | 100 | state: absent |
100 | | - ignore_errors: true |
| 101 | + failed_when: false |
101 | 102 |
|
102 | 103 | - name: Install Synaptics APT Repository keyring |
103 | 104 | ansible.builtin.apt: |
|
233 | 234 | groups: docker |
234 | 235 | append: true |
235 | 236 | - name: Ensure /etc/docker directory exists |
236 | | - file: |
| 237 | + ansible.builtin.file: |
237 | 238 | path: /etc/docker |
238 | 239 | state: directory |
239 | 240 | mode: '0755' |
240 | 241 | - name: Copy Docker daemon configuration |
241 | | - copy: |
| 242 | + ansible.builtin.copy: |
242 | 243 | content: "{{ docker_config | to_nice_json }}" |
243 | 244 | dest: /etc/docker/daemon.json |
244 | 245 | mode: '0644' |
|
257 | 258 | ansible.builtin.get_url: |
258 | 259 | url: https://pkgs.zabbly.com/key.asc |
259 | 260 | dest: /etc/apt/keyrings/zabbly.asc |
| 261 | + mode: '0644' |
260 | 262 | # NOTE: hardcoded to noble as Incus does not do non-LTS releases |
261 | 263 | - name: Add Incus repository file |
262 | 264 | ansible.builtin.copy: |
|
317 | 319 | nerd_fonts_base_url: "https://github.com/ryanoasis/nerd-fonts/releases/latest/download" |
318 | 320 | block: |
319 | 321 | - name: Ensure fonts directory exists |
320 | | - file: |
| 322 | + ansible.builtin.file: |
321 | 323 | path: "{{ nerd_fonts_dir }}" |
322 | 324 | state: directory |
323 | 325 | mode: '0755' |
|
0 commit comments