Skip to content

Commit fa63e39

Browse files
author
Derek
committed
fix: skip apport disable when package not installed
The desktop.yml now removes apport as part of unwanted packages cleanup. This caused telemetry.yml to fail when trying to modify /etc/default/apport. Added failed_when: false to handle missing apport gracefully.
1 parent cfa2ffa commit fa63e39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ansible/roles/dfe_developer_core/tasks/telemetry.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@
3636
mode: '0644'
3737

3838
# --- Apport (crash reporting to Canonical) ---
39+
# Skip if apport is not installed (e.g., removed by desktop.yml)
3940
- name: Disable Apport crash reporting
4041
ansible.builtin.lineinfile:
4142
path: /etc/default/apport
4243
regexp: '^enabled='
4344
line: 'enabled=0'
45+
failed_when: false
4446

4547
- name: Stop and disable Apport service
4648
ansible.builtin.systemd:

0 commit comments

Comments
 (0)