17 lines
577 B
YAML
17 lines
577 B
YAML
- name: Ailab Sandbox
|
|
hosts: all
|
|
gather_facts: false
|
|
pre_tasks:
|
|
- name: Wait for VM to finish booting and accept SSH
|
|
ansible.builtin.wait_for_connection:
|
|
timeout: 180
|
|
tasks:
|
|
- name: Install nix
|
|
ansible.builtin.shell: curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --daemon
|
|
args:
|
|
creates: /nix/var/nix/profiles/default/bin/nix
|
|
- name: Install opencode
|
|
ansible.builtin.shell: curl -fsSL https://opencode.ai/v2/install | bash
|
|
args:
|
|
creates: /home/taptap/.opencode/bin/opencode
|