fixes with linter

This commit is contained in:
ProgramSnail 2025-08-09 11:47:58 +03:00
parent 932046cc39
commit 66109effc5
20 changed files with 124 additions and 111 deletions

View file

@ -2,29 +2,25 @@
hosts: localhost
connection: local
vars:
configue:
- bash
- cli
- git
- ssh
- scripts
apps:
- cli
vars_prompt:
- name: tools_in
prompt: "Specify comma separated list of required tool packages (cpp, js, haskell, txt, lang)"
pre_tasks:
- name: Get tools list
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

View file

@ -1,38 +1,32 @@
- name: Create distrobox containers on host
hosts: localhost
connection: local
vars:
tasks:
- name: Create containers
include_role:
name: dev_host
ansible.builtin.include_role:
name: container
vars:
container_name: '{{ item }}'
loop: '{{ container_names }}'
- name: Setup containers
hosts: containers
vars:
configue:
- bash
- cli
- git
- ssh
- scripts
apps:
- cli
pre_tasks:
- name: Get tools list
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: "{{ container_tools['{{item}}'] }}"
# TODO: repositories