Update unattended-upgrades.yml

Added become lines given it needed permissions to run the operation but failed to do so.  I think the role is older and you use to be able to elevate permissions from playbook.
This commit is contained in:
James Tombleson 2019-05-02 07:42:47 -07:00
parent a941a36d25
commit 9eabb48d1c

View File

@ -7,6 +7,7 @@
when: (ansible_distribution == "Debian") and (ansible_distribution_release == "wheezy")
- name: install unattended-upgrades
become: true
apt:
pkg: unattended-upgrades
state: present
@ -18,6 +19,7 @@
when: unattended_automatic_reboot
- name: create APT auto-upgrades configuration
become: true
template:
src: auto-upgrades.j2
dest: /etc/apt/apt.conf.d/20auto-upgrades
@ -26,6 +28,7 @@
mode: 0644
- name: create unattended-upgrades configuration
become: true
template:
src: unattended-upgrades.j2
dest: /etc/apt/apt.conf.d/50unattended-upgrades