diff --git a/local.yml b/local.yml index 8aec897..61c2664 100644 --- a/local.yml +++ b/local.yml @@ -167,6 +167,7 @@ - block: - include_tasks: tasks/workstation/shared/settings/gnome.yml - include_tasks: tasks/workstation/shared/settings/cinnamon.yml + - include_tasks: tasks/workstation/shared/settings/xdg_autostart.yml - include_tasks: tasks/workstation/linux/cron/ansible.yml when: ansible_system == "Linux" diff --git a/tasks/workstation/shared/settings/xdg_autostart.yml b/tasks/workstation/shared/settings/xdg_autostart.yml new file mode 100644 index 0000000..3ed2f2c --- /dev/null +++ b/tasks/workstation/shared/settings/xdg_autostart.yml @@ -0,0 +1,8 @@ +--- + +- name: Workstation | Shared | Settings | XDG Autostart | Disable All + shell: "{{ item }}" + loop: + - mkdir -pv /etc/xdg/autostart/disabled /home/{{ user }}/.config/autostart/disabled + - mv /etc/xdg/autostart/*.desktop /etc/xdg/autostart/disabled/ || return 0 + - mv /home/{{ user }}/.config/autostart/*.desktop /home/{{ user }}/.config/autostart/disabled/ || return 0