diff --git a/roles/common/files/20auto-upgrades b/roles/common/files/20auto-upgrades new file mode 100644 index 0000000..7ef370f --- /dev/null +++ b/roles/common/files/20auto-upgrades @@ -0,0 +1,2 @@ +APT::Periodic::Update-Package-Lists "1"; +APT::Periodic::Unattended-Upgrade "1"; \ No newline at end of file diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml new file mode 100644 index 0000000..b783b8d --- /dev/null +++ b/roles/common/tasks/main.yml @@ -0,0 +1,20 @@ +--- +- name: Install generic deps + apt: + pkg: + - git + - sudo + - acl + +- name: Install Unattended Upgrades + apt: + pkg: + - unattended-upgrades + +- name: Activate Unattented Upgrades + copy: + src: 20auto-upgrades + dest: /etc/apt/apt.conf.d/20auto-upgrades + owner: root + group: root + mode: 0644 \ No newline at end of file