allow user to skip dotfiles and ssh key installation

This commit is contained in:
Pig Monkey 2015-11-22 17:10:59 -08:00
parent ab5aff94f4
commit 848efd69b8
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@
command: cower -dq rcm
chdir=/home/{{ user.name }}/{{ aur.dir }}
creates=/home/{{ user.name }}/{{ aur.dir }}/rcm
when: dotfiles is defined
tags:
- aur
- dotfiles
@ -11,6 +12,7 @@
- name: Build and install rcm
command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/rcm"
when: dotfiles is defined
tags:
- aur
- dotfiles
@ -19,6 +21,7 @@
- name: Clone user dotfiles
git: repo={{ dotfiles.url }} dest=/home/{{ user.name }}/.dotfiles accept_hostkey=yes update=no
when: dotfiles is defined
become: yes
become_user: "{{ user.name }}"
tags:
@ -26,6 +29,7 @@
- name: Install user dotfiles
command: rcup {{ dotfiles.rcup_flags }}
when: dotfiles is defined
become: yes
become_user: "{{ user.name }}"
tags:

View file

@ -54,6 +54,7 @@
- name: Install user SSH key
copy: src={{ ssh.user_key }} dest=/home/{{ user.name }}/.ssh/id_rsa mode=600 owner={{ user.name }} group={{ user.group }}
when: ssh.user_key is defined
tags:
- ssh