2022-10-12 02:53:10 +00:00
|
|
|
- include_role:
|
|
|
|
name: per_user
|
|
|
|
|
2022-10-27 04:07:06 +00:00
|
|
|
- name: Configure gitconfig
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
|
|
|
mode: 0600
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
when: gitconfig is defined
|
|
|
|
loop:
|
|
|
|
- src: "{{ gitconfig }}"
|
|
|
|
dest: .gitconfig
|
|
|
|
|
|
|
|
- name: Copy files
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
|
|
|
mode: 0600
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- src: ignore
|
|
|
|
dest: .ignore
|
|
|
|
- src: tmux.conf
|
|
|
|
dest: .tmux.conf
|
|
|
|
- src: gitignore_global
|
|
|
|
dest: .gitignore_global
|
|
|
|
|
2022-10-12 02:53:10 +00:00
|
|
|
- import_tasks: tasks/peruser_freebsd.yaml
|
|
|
|
when: 'os_flavor == "freebsd"'
|
|
|
|
|
|
|
|
- import_tasks: tasks/peruser_linux.yaml
|
|
|
|
when: 'os_flavor == "linux"'
|