29 lines
618 B
YAML
29 lines
618 B
YAML
- name: APT upgrade
|
|
apt:
|
|
autoremove: true
|
|
upgrade: yes
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 86400 # One day
|
|
- name: Create /data directory
|
|
file:
|
|
path: /data
|
|
state: directory
|
|
- name: Create /apps directory
|
|
file:
|
|
path: /apps
|
|
state: directory
|
|
- name: Disable systemd-resolved
|
|
systemd:
|
|
name: systemd-resolved
|
|
enabled: false
|
|
state: stopped
|
|
- name: Copy resolv.conf
|
|
copy:
|
|
src: "{{ role_path }}/files/resolv.conf"
|
|
dest: /etc/resolv.conf
|
|
follow: true
|
|
- name: Copy hosts file
|
|
copy:
|
|
src: "{{ role_path }}/files/hosts"
|
|
dest: /etc/hosts
|