debian_update.yml 498 B

1234567891011121314151617181920212223242526
  1. ---
  2. - hosts: debian
  3. user: ansible
  4. become_user: root
  5. become: yes
  6. tasks:
  7. - name: update the system
  8. apt:
  9. upgrade: dist
  10. update_cache: yes
  11. - name: Remove useless packages from the cache
  12. apt:
  13. autoclean: yes
  14. - name: Remove dependencies that are no longer required
  15. apt:
  16. autoremove: yes
  17. - name: Add acl for user
  18. apt:
  19. name: "{{ item }}"
  20. state: present
  21. with_items:
  22. - acl
  23. - python3-pip