Removing notifications for all users on a machine.
This commit is contained in:
parent
7099a80079
commit
5b7dd1c793
@ -1,11 +1,17 @@
|
||||
---
|
||||
- name: Removing upgrade-notification from /etc
|
||||
lineinfile:
|
||||
dest: /etc/update-manager/release-upgrades
|
||||
line: "Prompt=never"
|
||||
regexp: '^Prompt='
|
||||
state: present
|
||||
|
||||
- name: Checking for upgrade-notification configuration
|
||||
stat:
|
||||
path: /usr/share/upstart/sessions/update-notifier-release.conf
|
||||
register: update_notifier_release_stat
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
- name: Removing notifications for system upgrade
|
||||
shell: mv /usr/share/upstart/sessions/update-notifier-release.conf /usr/share/upstart/sessions/update-notifier-release.conf.disabled
|
||||
when: update_notifier_release_stat|success
|
||||
|
Loading…
x
Reference in New Issue
Block a user