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:
parent
a941a36d25
commit
9eabb48d1c
@ -7,6 +7,7 @@
|
|||||||
when: (ansible_distribution == "Debian") and (ansible_distribution_release == "wheezy")
|
when: (ansible_distribution == "Debian") and (ansible_distribution_release == "wheezy")
|
||||||
|
|
||||||
- name: install unattended-upgrades
|
- name: install unattended-upgrades
|
||||||
|
become: true
|
||||||
apt:
|
apt:
|
||||||
pkg: unattended-upgrades
|
pkg: unattended-upgrades
|
||||||
state: present
|
state: present
|
||||||
@ -18,6 +19,7 @@
|
|||||||
when: unattended_automatic_reboot
|
when: unattended_automatic_reboot
|
||||||
|
|
||||||
- name: create APT auto-upgrades configuration
|
- name: create APT auto-upgrades configuration
|
||||||
|
become: true
|
||||||
template:
|
template:
|
||||||
src: auto-upgrades.j2
|
src: auto-upgrades.j2
|
||||||
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
||||||
@ -26,6 +28,7 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: create unattended-upgrades configuration
|
- name: create unattended-upgrades configuration
|
||||||
|
become: true
|
||||||
template:
|
template:
|
||||||
src: unattended-upgrades.j2
|
src: unattended-upgrades.j2
|
||||||
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
||||||
|
Loading…
Reference in New Issue
Block a user