summaryrefslogtreecommitdiff
path: root/ansible/roles/self-updating-system
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-02-27 08:43:44 +0200
committerLars Wirzenius <liw@liw.fi>2017-02-27 08:43:44 +0200
commit36dfb47fa2f5c49c5558c9ad778837d72a5d1259 (patch)
tree3f81af9272293089b3c8720d5a92b67ee8cd0af7 /ansible/roles/self-updating-system
parentb8a206856d0630f1bd183f8d5494609ae71a5442 (diff)
downloadansibleness-36dfb47fa2f5c49c5558c9ad778837d72a5d1259.tar.gz
Fix unattended-upgrades conf to use Ansible template for distro
For some reasion $(distro) didn't work, caused apt to complain. It should work, but it's too early in the morning to debug properly.
Diffstat (limited to 'ansible/roles/self-updating-system')
-rw-r--r--ansible/roles/self-updating-system/tasks/main.yml2
-rw-r--r--ansible/roles/self-updating-system/templates/unattended-upgrades.conf (renamed from ansible/roles/self-updating-system/files/unattended-upgrades.conf)2
2 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/self-updating-system/tasks/main.yml b/ansible/roles/self-updating-system/tasks/main.yml
index 9d27537..9a3410b 100644
--- a/ansible/roles/self-updating-system/tasks/main.yml
+++ b/ansible/roles/self-updating-system/tasks/main.yml
@@ -5,6 +5,6 @@
apt: name=apt-listchanges
- name: configure unattended-upgrades
- copy:
+ template:
src: unattended-upgrades.conf
dest: /etc/apt/apt.conf.d/02upgrades
diff --git a/ansible/roles/self-updating-system/files/unattended-upgrades.conf b/ansible/roles/self-updating-system/templates/unattended-upgrades.conf
index b5d0752..1eec6f6 100644
--- a/ansible/roles/self-updating-system/files/unattended-upgrades.conf
+++ b/ansible/roles/self-updating-system/templates/unattended-upgrades.conf
@@ -3,7 +3,7 @@
// updates, and then reboot during the night.
Unattended-Upgrade::Origins-Pattern {
- "origin=Debian,codename=${distro},label=Debian-Security";
+ "origin=Debian,codename={{ distro }},label=Debian-Security";
};
Unattended-Upgrade::Mail "root";