Commit 61c0e513 authored by David Putzolu's avatar David Putzolu
Browse files

Merge remote-tracking branch 'upstream/master'

parents 9ad3dd93 2617620d
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
hosts.ini
+2 −4
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ Master and nodes must have passwordless SSH access

## Usage

Add the system information gathered above into a file called hosts.ini. For example:
Add the system information gathered above into a file called `hosts.ini` in the same directory as this README file. There is a template in the `inventory` directory. For example:

```bash
[master]
@@ -35,13 +35,12 @@ Add the system information gathered above into a file called hosts.ini. For exam
[k3s_cluster:children]
master
node

```

Start provisioning of the cluster using the following command:

```bash
ansible-playbook site.yml -i inventory/hosts.ini
ansible-playbook site.yml
```

## Kubeconfig
@@ -51,4 +50,3 @@ To get access to your **Kubernetes** cluster just
```bash
scp debian@master_ip:~/.kube/config ~/.kube/config
```
+24 −0
Original line number Diff line number Diff line
@@ -16,8 +16,32 @@
    - ansible_facts.architecture is search("arm")
  register: boot_cmdline

- name: Flush iptables before changing iptables-legacy
  iptables:
    flush: true
  when:
    - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster")

- name: Changing to iptables-legacy for Raspbian Buster
  alternatives:
    path: /usr/sbin/iptables-legacy
    name: iptables
  register: ip6_legacy
  when:
    - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster")

- name: Changing to ip6tables-legacy for Raspbian Buster
  alternatives:
    path: /usr/sbin/ip6tables-legacy
    name: ip6tables
  register: ip4_legacy
  when:
    - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster")

- name: Rebooting on Raspbian
  reboot:
  when:
    - boot_cmdline is changed
    - ansible_facts.architecture is search("arm")
    - ip6_legacy is changed
    - ip4_legacy is changed