Ansible roles by Evolix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
646 B

  1. ---
  2. - name: Change basics repositories
  3. template:
  4. src: "{{ ansible_distribution_release }}_basics.list.j2"
  5. dest: /etc/apt/sources.list
  6. mode: "0644"
  7. force: yes
  8. register: apt_basic_list
  9. tags:
  10. - apt
  11. - name: Clean GANDI sources.list.d/debian-security.list
  12. file:
  13. path: '{{ item }}'
  14. state: absent
  15. with_items:
  16. - /etc/apt/sources.list.d/debian-security.list
  17. - /etc/apt/sources.list.d/debian-stretch.list
  18. - /etc/apt/sources.list.d/debian-update.list
  19. when: apt_clean_gandi_sourceslist
  20. tags:
  21. - apt
  22. - name: Apt update
  23. apt:
  24. update_cache: yes
  25. when: apt_basic_list | changed
  26. tags:
  27. - apt