--- - name: update pacman cache pacman: update_cache: yes - name: install packages for admins pacman: name: '{{ item }}' state: present with_items: - bash-completion - bridge-utils - htop - mosh - nload - rxvt-unicode-terminfo - screen - tmux - vim - name: create bash_profile lineinfile: path: /root/.bash_profile line: '[[ -f ~/.bashrc ]] && . ~/.bashrc' create: yes - name: copy bashrc copy: src: bashrc dest: /root/.bashrc