This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure
unattended
tag is set on all tasks.
- Loading branch information
Yannik
authored and
Yannik
committed
Feb 17, 2016
1 parent
83be977
commit 8d73b7b
Showing
3 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,2 @@ | ||
--- | ||
- name: add distribution-specific variables | ||
include_vars: "{{ ansible_distribution }}.yml" | ||
|
||
- name: install unattended-upgrades | ||
apt: pkg=unattended-upgrades state=present | ||
tags: unattended | ||
|
||
- name: install reboot dependencies | ||
include: reboot.yml | ||
when: unattended_automatic_reboot | ||
tags: unattended | ||
|
||
- name: create APT auto-upgrades configuration | ||
copy: > | ||
src=auto-upgrades dest=/etc/apt/apt.conf.d/20auto-upgrades | ||
owner=root group=root mode=0644 | ||
tags: unattended | ||
|
||
- name: create unattended-upgrades configuration | ||
template: > | ||
src=unattended-upgrades.j2 dest=/etc/apt/apt.conf.d/50unattended-upgrades | ||
owner=root group=root mode=0644 | ||
tags: unattended | ||
- include: unattended-upgrades.yml | ||
tags: unattended |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: add distribution-specific variables | ||
include_vars: "{{ ansible_distribution }}.yml" | ||
|
||
- name: install unattended-upgrades | ||
apt: pkg=unattended-upgrades state=present | ||
|
||
- name: install reboot dependencies | ||
include: reboot.yml | ||
when: unattended_automatic_reboot | ||
|
||
- name: create APT auto-upgrades configuration | ||
copy: > | ||
src=auto-upgrades dest=/etc/apt/apt.conf.d/20auto-upgrades | ||
owner=root group=root mode=0644 | ||
- name: create unattended-upgrades configuration | ||
template: > | ||
src=unattended-upgrades.j2 dest=/etc/apt/apt.conf.d/50unattended-upgrades | ||
owner=root group=root mode=0644 |