config/playbooks/host.yml

34 lines
702 B
YAML
Raw Normal View History

- name: Create distrobox containers on host
hosts: localhost
connection: local
tasks:
- name: Create containers
2025-08-09 11:47:58 +03:00
ansible.builtin.include_role:
name: container
vars:
container_name: '{{ item }}'
loop: '{{ container_names }}'
- name: Setup containers
hosts: containers
2025-08-09 11:47:58 +03:00
vars:
2025-08-14 14:46:34 +03:00
configure:
2025-08-09 11:47:58 +03:00
- bash
- cli
- git
- ssh
- scripts
apps:
- ansible
2025-08-09 11:47:58 +03:00
- 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