- hosts: localhost pre_tasks: - name: install packages become: true package: name: '{{ item }}' state: present loop: '{{ packages }}' - name: add git forge to known hosts include_role: name: common tasks_from: 'known_hosts.yml' vars: user: '{{ ansible_user_id }}' items: - { domain: '{{ git_domain }}', key: '{{ git_host_key }}' } roles: - common tasks: - import_tasks: 'tasks/dotfiles.yml' - name: Include neovim tasks import_tasks: 'tasks/neovim.yml' tags: neovim - name: gather package facts package_facts: manager: pacman - import_tasks: 'tasks/aur.yml' - import_tasks: 'tasks/docker.yml' - name: setup python versions include_tasks: 'tasks/python.yml' loop: '{{ python_versions }}' - import_tasks: 'tasks/nvm.yml' vars_files: - 'vars/main.yml' - 'vars/archlinux.yml'