railiance: initial bootstrap scaffold
Some checks failed
railiance-tests / smoke (push) Has been cancelled
Some checks failed
railiance-tests / smoke (push) Has been cancelled
This commit is contained in:
25
ansible/bootstrap.yml
Normal file
25
ansible/bootstrap.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- name: Railiance host bootstrap
|
||||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Ensure base packages
|
||||
apt:
|
||||
name:
|
||||
- curl
|
||||
- git
|
||||
- jq
|
||||
update_cache: yes
|
||||
state: present
|
||||
|
||||
- name: Install k3s (server)
|
||||
shell: |
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --write-kubeconfig-mode=644" sh -
|
||||
args: { creates: /usr/local/bin/k3s }
|
||||
|
||||
- name: Verify k3s node
|
||||
shell: k3s kubectl get nodes
|
||||
register: nodes
|
||||
changed_when: false
|
||||
|
||||
- debug: var=nodes.stdout_lines
|
||||
Reference in New Issue
Block a user