15 changed files with 146 additions and 26 deletions
@ -0,0 +1,7 @@ |
|||||
|
--- |
||||
|
- hosts: "{{ target }}" |
||||
|
gather_facts: false |
||||
|
remote_user: pi |
||||
|
roles: |
||||
|
- installk3s |
||||
|
|
@ -0,0 +1,7 @@ |
|||||
|
--- |
||||
|
- hosts: "{{ target }}" |
||||
|
gather_facts: false |
||||
|
remote_user: pi |
||||
|
roles: |
||||
|
- installportainer |
||||
|
|
@ -0,0 +1 @@ |
|||||
|
console=serial0,115200 console=tty1 root=PARTUUID=18f274fe-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait rfkill.default.state=1 systemd.restore_state=0 cgroup_memory=1 cgroup_enable=memory |
@ -0,0 +1,30 @@ |
|||||
|
- name: cmdline.txt |
||||
|
become: true |
||||
|
copy: |
||||
|
src: resources/k3s/{{ item }} |
||||
|
dest: /boot |
||||
|
owner: root |
||||
|
group: root |
||||
|
mode: '0755' |
||||
|
with_items: |
||||
|
- cmdline.txt |
||||
|
|
||||
|
- name: iptables |
||||
|
become: true |
||||
|
shell: > |
||||
|
iptables -F |
||||
|
|
||||
|
- name: create k3s dir |
||||
|
file: |
||||
|
path: ~/k3s-setup |
||||
|
state: directory |
||||
|
|
||||
|
- name: Install k3s |
||||
|
become: true |
||||
|
shell: > |
||||
|
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE=”644” sh - |
||||
|
|
||||
|
- name: Neustart |
||||
|
reboot: |
||||
|
|
||||
|
|
@ -0,0 +1,16 @@ |
|||||
|
- name: Portainer Data Dir |
||||
|
become: true |
||||
|
file: |
||||
|
path: /data |
||||
|
state: directory |
||||
|
|
||||
|
- name: Install Portainer Container |
||||
|
docker_container: |
||||
|
name: portainer |
||||
|
image: portainer/portainer-ce:linux-arm |
||||
|
ports: |
||||
|
- "9000:9000" |
||||
|
restart_policy: always |
||||
|
volumes: |
||||
|
- portainer_data:/data |
||||
|
become: true |
@ -0,0 +1,7 @@ |
|||||
|
- name: Temperatur Status |
||||
|
shell: > |
||||
|
vcgencmd measure_temp |
||||
|
register: command_output |
||||
|
|
||||
|
- debug: |
||||
|
var: command_output.stdout_lines |
@ -0,0 +1,5 @@ |
|||||
|
- name: Touch Tank |
||||
|
ansible.builtin.file: |
||||
|
path: /tank/pis/{{ inventory_hostname }} |
||||
|
state: touch |
||||
|
mode: u=rw,g=r,o=r |
@ -0,0 +1,7 @@ |
|||||
|
--- |
||||
|
- hosts: "{{ target }}" |
||||
|
gather_facts: false |
||||
|
remote_user: pi |
||||
|
roles: |
||||
|
- showtemp |
||||
|
|
@ -0,0 +1,7 @@ |
|||||
|
--- |
||||
|
- hosts: "{{ target }}" |
||||
|
gather_facts: false |
||||
|
remote_user: pi |
||||
|
roles: |
||||
|
- touchtank |
||||
|
|
Loading…
Reference in new issue