Added git to its downloads.

Slight syntax modifications.
This commit is contained in:
Oriol 2023-03-14 22:05:09 +00:00
parent 2e68916722
commit 63509df725
4 changed files with 4 additions and 13 deletions

View File

@ -97,7 +97,7 @@ _kubeadm_join_command: Placeholder, will be populated at later stages of the scr
- Update -> Upgrade.
- Uninstalls `containerd`.
- Installs Docker (Debian) and Kubernetes repos.
- Installs `containerd.io`, `kubelet`, `kubeadm`, `kubectl`, `git`.
- Installs `containerd.io`, `kubelet`, `kubeadm`, `kubectl`, `git`, `vim`.
- Sets default config for `containerd` with cGroups enabled.
- Enables some `iptables`.
- "Resets" `/etc/hosts` file

View File

@ -10,9 +10,6 @@
ansible_user: "root"
ansible_password: "1234"
ansible_become_password: "{{ ansible_password }}"
# ansible_user: "orangepi"
# ansible_password: "orangepi"
# ansible_become_password: "orangepi" # Temporal
# New values
## Users
@ -25,8 +22,6 @@
new_language: "en_US.UTF-8"
# SSH with ROOT
tasks:
@ -117,6 +112,5 @@
# REBOOT
- name: reboot
ansible.builtin.shell: 'sleep 1 && dhclient -r && dhclient && reboot'
# ignore_errors: true # expected to fail due the imminent restart
ignore_unreachable: true
become: yes

View File

@ -27,9 +27,7 @@
owner: "{{ ansible_user_id }}"
become: true
# Network Plugin
- name: Calico
ansible.builtin.command: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml"
@ -37,9 +35,7 @@
- name: Remove Taint (allows deployment in control plane)
ansible.builtin.shell: "kubectl taint nodes --all node-role.kubernetes.io/control-plane-"
# Join token / command
- name: Generate join token
shell: kubeadm token create --print-join-command
register: kubeadm_join_cmd

View File

@ -9,7 +9,7 @@
- name: Swapoff
ansible.builtin.command: swapoff -a
- name: Disable ram on boot (orangepi) # Untested
- name: Disable ram on boot (orangepi) # Untested, confident on working.
copy:
dest: "/etc/default/orangepi-zram-config"
content: ENABLED=false
@ -17,7 +17,7 @@
- ansible_distribution | lower == "orangepi"
- ansible_architecture == "aarch64"
- name: Disable ram on boot (armbian) # Untested
- name: Disable ram on boot (armbian)
copy:
dest: "/etc/default/armbian-zram-config"
content: ENABLED=false
@ -96,6 +96,7 @@
- kubeadm
- kubectl
- git # fuck it, you will need it
- vim # fuck it, I need it.
- name: Hold kubeadm
ansible.builtin.dpkg_selections: