--- - name: Configure environment hosts: all tasks: - name: Set hostname become: true hostname: name: "{{ ansible_host }}" - import_tasks: tasks/preprocess-users.yml - name: Install network bash profile become: true copy: src: bashrc.sh dest: /home/{{ item.name }}/.bashrc mode: 0644 loop: "{{ _users_local }}" - name: Disable case-sensitive autocomplete become: true lineinfile: path: /home/{{ item.name }}/.inputrc line: set completion-ignore-case On create: true mode: 0644 loop: "{{ _users_local }}"