- hosts: localhost pre_tasks: - name: install packages become: true package: name: '{{ item }}' state: present loop: '{{ packages }}' - name: add gitlab to known hosts include_role: name: common tasks_from: 'known_hosts.yml' vars: user: '{{ ansible_user_id }}' items: - { domain: '{{ gitlab_domain }}', key: '{{ gitlab_host_key }}' } roles: - common tasks: - import_tasks: 'tasks/dotfiles.yml' - import_tasks: 'tasks/neovim.yml' vars_files: - 'vars/main.yml' - 'vars/debian.yml'