--- - include_vars: vault.yml - name: Install packages (Archlinux) become: true pacman: name: - neomutt when: ansible_facts['distribution'] == 'Archlinux' - name: Install packages (Debian) become: true apt: name: - neomutt when: ansible_facts['distribution'] == 'Debian' - name: Create neomutt config directory file: path: ~/.config/neomutt state: directory - name: Copy neomuttrc copy: src: neomuttrc dest: ~/.config/neomutt/neomuttrc - name: Create account directories file: path=~/.config/neomutt/{{ item.fulladdress }} state=directory with_items: "{{ accounts }}"