Add more config files to the base role.
This commit is contained in:
@@ -104,3 +104,22 @@
|
||||
src: tmpfs
|
||||
fstype: tmpfs
|
||||
opts: rw,mode=777
|
||||
|
||||
- name: Set timezone
|
||||
file:
|
||||
src: "/usr/share/zoneinfo/{{ timezone|default('UTC') }}"
|
||||
dest: /etc/localtime
|
||||
owner: root
|
||||
group: wheel
|
||||
state: link
|
||||
|
||||
- name: Install scripts
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: git_branches_by_owner_time
|
||||
dest: /usr/local/bin/git_branches_by_owner_time
|
||||
|
||||
@@ -1,6 +1,33 @@
|
||||
- include_role:
|
||||
name: per_user
|
||||
|
||||
- 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
|
||||
|
||||
- import_tasks: tasks/peruser_freebsd.yaml
|
||||
when: 'os_flavor == "freebsd"'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user