--- - fail: when: ansible_distribution != 'Archlinux' - name: Check if pacman.conf is backed up # don't overwrite backup stat: path: /etc/pacman.conf.backup register: pacmanconf - name: Backup pacman.conf copy: src: /etc/pacman.conf dest: /etc/pacman.conf.backup remote_src: yes when: not pacmanconf.stat.exists