Add config task

This commit is contained in:
Jake Howard 2018-09-10 08:53:04 +01:00
parent 1c7e65dba5
commit 3d02ac372f
Signed by: jake
GPG key ID: 57AFB45680EDD477
13 changed files with 65 additions and 4 deletions

View file

@ -13,5 +13,5 @@ yamllint = "*"
python_version = "3.7"
[scripts]
deploy = "ansible-playbook -i hosts dotfiles.yml -C"
deploy = "sudo ansible-playbook -i hosts dotfiles.yml -C"
test = "yamllint -sc yamllint.yml yamllint.yml dotfiles.yml tasks/ vars.yml"

View file

@ -5,3 +5,4 @@
- include_vars:
file: vars.yml
- import_tasks: tasks/common.yml
- import_tasks: tasks/config.yml

View file

@ -13,11 +13,11 @@
[include]
path = ~/.dotfiles/git/private.conf
<% if @trusted['hostname'] == 'too-work' -%>
{% if ansible_fqdn == "TOO-Work" %}
path = ~/.dotfiles/git/work.conf
<% else -%>
{% else %}
path = ~/.dotfiles/git/personal.conf
<% end -%>
{% endif %}
[includeIf "gitdir:~/sourcebots/"]
path = ~/.dotfiles/git/sourcebots.conf

60
tasks/config.yml Normal file
View file

@ -0,0 +1,60 @@
- copy:
src: ./files/libinput-gestures.conf
dest: /etc/libinput-gestures.conf
mode: 0644
owner: jake
- copy:
src: ./files/terminator.conf
dest: /home/jake/.config/terminator/config
mode: 0644
owner: jake
- copy:
src: ./files/uniemoji.json
dest: /home/jake/.config/uniemoji/custom.json
mode: 0644
owner: jake
- copy:
src: ./files/assh.yml
dest: /home/jake/.ssh/assh.yml
mode: 0644
owner: jake
- copy:
src: ./files/gitignore_global
dest: /home/jake/.config/.gitignore
mode: 0644
owner: jake
- template:
src: ./files/gitconfig.conf
dest: /home/jake/.gitconfig
mode: 0644
owner: jake
group: users
- copy:
src: ./files/rofi.conf
dest: /home/jake/.config/rofi/config
mode: 0644
owner: jake
- copy:
src: ./files/touchpad.conf
dest: /usr/share/X11/xorg.conf.d/30-touchpad.conf
mode: 0644
owner: jake
- copy:
src: ./files/caret-preferences.md
dest: /home/jake/.config/Caret/Preferences.md
mode: 0644
owner: jake
- copy:
src: ./files/alacritty.yml
dest: /home/jake/.config/alacritty/alacritty.yml
mode: 0644
owner: jake