config/playbooks/host.yml
2025-08-17 12:34:41 +03:00

33 lines
702 B
YAML

- name: Create distrobox containers on host
hosts: localhost
connection: local
tasks:
- name: Create containers
ansible.builtin.include_role:
name: container
vars:
container_name: '{{ item }}'
loop: '{{ container_names }}'
- name: Setup containers
hosts: containers
vars:
configure:
- bash
- cli
- git
- ssh
- scripts
apps:
- ansible
- cli
pre_tasks:
- name: Get tools list
ansible.builtin.set_fact:
tools: "{{ tools_in.split(',') }}"
roles:
# install apps
- role: installs
# link and copy dotfiles
- role: dotfiles
# install and setup dev tools
- role: dev