diff --git a/generate-k3s-token.sh b/generate-k3s-token.sh new file mode 100755 index 0000000..147bcd5 --- /dev/null +++ b/generate-k3s-token.sh @@ -0,0 +1,2 @@ +cd group_vars +sed -i "s#^k3s_token.*#k3s_token: $(pwgen 32 1)#" cluster.yaml diff --git a/group_vars/cluster.yaml b/group_vars/cluster.yaml new file mode 100644 index 0000000..52cdef6 --- /dev/null +++ b/group_vars/cluster.yaml @@ -0,0 +1 @@ +k3s_token: aibahrighaemaeshi2Dahgu9Ahquoo0c diff --git a/inventory.yaml b/inventory.yaml index 3c4e046..92e4284 100644 --- a/inventory.yaml +++ b/inventory.yaml @@ -1,3 +1,4 @@ +[cluster] node01 ansible_ssh_user=root ansible_ssh_host=78.47.49.236 node02 ansible_ssh_user=root ansible_ssh_host=78.46.186.206 node03 ansible_ssh_user=root ansible_ssh_host=78.47.122.172