main.yml 478 B

12345678910111213141516171819
  1. ---
  2. - name: Install unattended-updates
  3. apt:
  4. name: unattended-upgrades
  5. state: present
  6. - name: Install apt-listchanges
  7. apt:
  8. name: apt-listchanges
  9. state: present
  10. - name: create /etc/apt/apt.conf.d/50unattended-upgrades
  11. template: src=50unattended-upgrades dest=/etc/apt/apt.conf.d/50unattended-upgrades mode=0644
  12. - name: create /etc/apt/apt.conf.d/20auto-upgrades
  13. template: src=20auto-upgrades dest=/etc/apt/apt.conf.d/20auto-upgrades mode=0644