- name: Write pacman.conf copy: src=pacman.conf dest=/etc/pacman.conf mode=0644 - name: Write mirrorlist copy: src=mirrorlist dest=/etc/pacman.d/mirrorlist mode=0644 - name: Mask services file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link with_items: masked_services - name: Stop services service: name={{ item }} state=stopped enabled=no with_items: masked_services - user: name=root shell=/bin/bash - name: delete oh-my-zsh repo file: path=/root/.oh-my-zsh state=absent - name: delete .zshrc file: path=/root/.zshrs state=absent - name: Allow wheel group to use sudo lineinfile: "dest=/etc/sudoers state=present regexp='^%wheel' line='%wheel ALL=(ALL) NOPASSWD: ALL'" - name: Write mirrorlist copy: src=sudoers dest=/etc/sudoers mode=0644 - user: name=admin shell=/bin/bash groups=wheel append=yes - name: Create ~admin/.ssh file: path=/home/admin/.ssh state=directory - name: SSH Keys copy: src=authorized_keys dest=/home/admin/.ssh/authorized_keys - name: deploy dotfiles copy: src="{{ item[0] }}" dest="{{ item[1].dest }}/.{{ item[0] }}" owner="{{ item[1].owner }}" group="{{ item[1].group }}" with_nested: - ['bashrc', 'dircolors', 'vimrc'] - - {dest: "/home/admin", owner: "admin", group: "admin"} - {dest: "/root", owner: "root", group: "root"} - mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present - name: backup directory file: path=/root/.vim.backupdir state=directory - include: ssh.yml