mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-30 03:08:15 +00:00
distrobox container host setup playbook
This commit is contained in:
parent
f7a6f59fc6
commit
0605fda37e
5 changed files with 111 additions and 15 deletions
|
|
@ -1,26 +1,30 @@
|
|||
- name: Install all required tools into the distrobox dev container
|
||||
- name: Configure 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:
|
||||
# link and copy dotfiles
|
||||
- role: dotfiles
|
||||
vars:
|
||||
configue:
|
||||
- bash
|
||||
- cli
|
||||
- git
|
||||
- ssh
|
||||
- scripts
|
||||
|
||||
# install apps
|
||||
- role: installs
|
||||
vars:
|
||||
apps:
|
||||
- cli
|
||||
|
||||
# install and setup dev tools
|
||||
- role: dev
|
||||
vars:
|
||||
tools: "{{ tools_in.split(',') }}"
|
||||
|
||||
# TODO: repositories
|
||||
|
|
|
|||
|
|
@ -1 +1,38 @@
|
|||
- name: Create distrobox containers on host
|
||||
hosts: localhost
|
||||
connection: local
|
||||
vars:
|
||||
tasks:
|
||||
- name: Create containers
|
||||
include_role:
|
||||
name: dev_host
|
||||
vars:
|
||||
container_name: '{{ item }}'
|
||||
loop: '{{ container_names }}'
|
||||
|
||||
- name: Setup containers
|
||||
hosts: containers
|
||||
roles:
|
||||
# link and copy dotfiles
|
||||
- role: dotfiles
|
||||
vars:
|
||||
configue:
|
||||
- bash
|
||||
- cli
|
||||
- git
|
||||
- ssh
|
||||
- scripts
|
||||
|
||||
# install apps
|
||||
- role: installs
|
||||
vars:
|
||||
apps:
|
||||
- cli
|
||||
|
||||
# install and setup dev tools
|
||||
- role: dev
|
||||
vars:
|
||||
tools: "{{ container_tools['{{item}}'] }}"
|
||||
|
||||
# TODO: repositories
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue