28 lines
618 B
YAML
28 lines
618 B
YAML
---
|
|
- hosts: all
|
|
become: yes
|
|
remote_user: ansible
|
|
gather_facts: false
|
|
|
|
vars:
|
|
|
|
tasks:
|
|
- name: Set up apt proxy configuration
|
|
copy:
|
|
content: |
|
|
Acquire::http::Proxy "http://debcache:3142";
|
|
dest: /etc/apt/apt.conf.d/00cacher
|
|
mode: '0644'
|
|
notify: apt cache update
|
|
|
|
- name: Upgrade-packages.yml - update packages
|
|
include: ../../roles/lib/upgrade-packages.yml
|
|
|
|
- name: Configure resolv.conf
|
|
copy:
|
|
content: |
|
|
nameserver 192.168.0.224
|
|
search local
|
|
dest: /etc/resolv.conf
|
|
mode: '0644'
|
|
backup: yes |