mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
allow user to skip dotfiles and ssh key installation
This commit is contained in:
parent
ab5aff94f4
commit
848efd69b8
2 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue