+ content: |
+ Acquire::http { Proxy "http://{{ aptproxy }}:3142"; };
+ Acquire::https { Proxy "https://"; };
+- name: prepare ubuntu-DNS for working in local network
+ file:
+ src: /run/systemd/resolve/resolv.conf
+ dest: /etc/resolv.conf
+ state: link
+ force: yes
+ when: ansible_facts['distribution'] == 'Ubuntu'