mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-08 04:35:07 +00:00
separate install and dev roles, box basic playbook
This commit is contained in:
parent
58966f9e4a
commit
f7a6f59fc6
9 changed files with 44 additions and 14 deletions
|
|
@ -1 +1,26 @@
|
||||||
|
- name: Install all required tools into the distrobox dev container
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
vars:
|
||||||
|
configue:
|
||||||
|
- bash
|
||||||
|
- cli
|
||||||
|
- git
|
||||||
|
- ssh
|
||||||
|
- scripts
|
||||||
|
apps:
|
||||||
|
- cli
|
||||||
|
# tools:
|
||||||
|
# - cpp
|
||||||
|
# - javascript
|
||||||
|
vars_prompt:
|
||||||
|
- name: tools_in
|
||||||
|
prompt: "Specify comma separated list of required tool packages (cpp, js, haskell, txt, lang)"
|
||||||
|
pre_tasks:
|
||||||
|
- ansible.builtin.set_fact:
|
||||||
|
tools: "{{ tools_in.split(',') }}"
|
||||||
|
roles:
|
||||||
|
- role: dotfiles
|
||||||
|
- role: installs
|
||||||
|
- role: dev
|
||||||
|
# TODO: repositories
|
||||||
|
|
|
||||||
18
roles/dev/tasks/main.yml
Normal file
18
roles/dev/tasks/main.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
- ansible.builtin.import_tasks: build.yml
|
||||||
|
|
||||||
|
- ansible.builtin.import_tasks: cpp.yml
|
||||||
|
when: "'cpp' in tools"
|
||||||
|
|
||||||
|
- ansible.builtin.import_tasks: js.yml
|
||||||
|
when: "'js' in tools"
|
||||||
|
|
||||||
|
- ansible.builtin.import_tasks: haskell.yml
|
||||||
|
when: "'haskell' in tools"
|
||||||
|
|
||||||
|
- ansible.builtin.import_tasks: txt.yml
|
||||||
|
when: "'txt' in tools"
|
||||||
|
|
||||||
|
- ansible.builtin.import_tasks: lang.yml
|
||||||
|
when: "'lang' in tools"
|
||||||
|
|
||||||
|
# TODO: ocaml, truffle, ...
|
||||||
|
|
@ -1,18 +1,6 @@
|
||||||
- ansible.builtin.import_tasks: build.yml
|
|
||||||
when: "'build' in apps"
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: cli.yml
|
- ansible.builtin.import_tasks: cli.yml
|
||||||
when: "'cli' in apps"
|
when: "'cli' in apps"
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: cpp.yml
|
|
||||||
when: "'cpp' in apps"
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: lang.yml
|
|
||||||
when: "'lang' in apps"
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: javascript.yml
|
|
||||||
when: "'javascript' in apps"
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: gui.yml
|
- ansible.builtin.import_tasks: gui.yml
|
||||||
when: "'gui' in apps"
|
when: "'gui' in apps"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue