2021-02-18 18:47:34 -06:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
|
|
|
- hosts: pik8s
|
2021-02-20 10:48:28 -06:00
|
|
|
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 ]
|
2021-02-18 18:47:34 -06:00
|
|
|
roles:
|
|
|
|
- role: docker
|
|
|
|
tags: [ k8s, docker, skip-pull ]
|
|
|
|
- role: k8s
|
|
|
|
vars:
|
|
|
|
kubernetes_enable_web_ui: yes
|
|
|
|
tags: [ k8s, skip-pull ]
|
2021-02-18 19:26:09 -06:00
|
|
|
- role: motd
|
|
|
|
vars:
|
|
|
|
motd_watch_services_extra:
|
|
|
|
- docker
|
|
|
|
- kubelet
|
|
|
|
tags: [ k8s, motd ]
|
2021-02-18 18:47:34 -06:00
|
|
|
- role: zerotier
|
|
|
|
tags: [ k8s, zerotier ]
|