29 lines
812 B
YAML
29 lines
812 B
YAML
#!/usr/bin/env ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
- hosts: pik8s
|
|
tasks:
|
|
- name: disable systemd-resolved stub
|
|
lineinfile: path=/etc/systemd/resolved.conf regexp="^DNSStubListener=.*" line="DNSStubListener=no"
|
|
register: resolved_stub
|
|
tags: [ k8s, resolved ]
|
|
- name: restart systemd-resolved
|
|
systemd: daemon_reload=yes name=systemd-resolved.service state=restarted
|
|
when: resolved_stub is changed
|
|
tags: [ k8s, resolved ]
|
|
roles:
|
|
- role: docker
|
|
tags: [ k8s, docker, skip-pull ]
|
|
- role: k8s
|
|
vars:
|
|
kubernetes_enable_web_ui: yes
|
|
tags: [ k8s, skip-pull ]
|
|
- role: motd
|
|
vars:
|
|
motd_watch_services_extra:
|
|
- docker
|
|
- kubelet
|
|
tags: [ k8s, motd ]
|
|
- role: zerotier
|
|
tags: [ k8s, zerotier ]
|