26 lines
631 B
YAML
26 lines
631 B
YAML
- name: APT upgrade
|
|
apt:
|
|
autoremove: true
|
|
upgrade: yes
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 86400 # One day
|
|
- name: Create base service directory
|
|
file:
|
|
path: "{{ base_service_dir }}"
|
|
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: Add dataserver to known hosts
|
|
known_hosts:
|
|
name: "lewis.dmz"
|
|
key: "lewis.dmz ssh-ed25519 {{ dataserver_public_key }}"
|
|
state: present
|