Move what can be shared in the base role out to the common tasks file.

This commit is contained in:
Tom Alexander 2022-10-27 00:12:06 -04:00
parent 2e0a6073c8
commit b69934072f
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 44 additions and 30 deletions

View File

@ -13,3 +13,5 @@
gpgsign = true gpgsign = true
[pull] [pull]
rebase = true rebase = true
[log]
date = local

View File

@ -0,0 +1,2 @@
**/backend/test_data
**/backend/notebooks

View File

@ -1,3 +1,38 @@
- name: Install packages
package:
name:
- rsync
- bash
- tmux
- lsof
- mg
- htop
- tree
- curl
- ncdu
- ripgrep
- git-crypt
state: present
- 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
- import_tasks: tasks/freebsd.yaml - import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"' when: 'os_flavor == "freebsd"'

View File

@ -1,18 +1,7 @@
- name: Install packages - name: Install packages
package: package:
name: name:
- rsync
- bash
- tmux
- lsof
- mg
- htop
- tree
- curl
- pstree - pstree
- ncdu
- ripgrep
- git-crypt
state: present state: present
- name: See if the alacritty termcap has been added - name: See if the alacritty termcap has been added
@ -104,22 +93,3 @@
src: tmpfs src: tmpfs
fstype: tmpfs fstype: tmpfs
opts: rw,mode=777 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

View File

@ -0,0 +1,5 @@
- name: Install packages
package:
name:
- psmisc
state: present