2021-01-29 00:08:39 +00:00
|
|
|
---
|
|
|
|
- name: Install cli utilities
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- bash
|
|
|
|
- bash-completion
|
|
|
|
- bat
|
|
|
|
- git
|
|
|
|
- sl
|
|
|
|
- htop
|
2021-03-20 23:42:38 +00:00
|
|
|
- patch
|
2021-01-29 00:08:39 +00:00
|
|
|
- tmux
|
|
|
|
- tree
|
|
|
|
register: pkg_result
|
|
|
|
retries: 3
|
|
|
|
until: pkg_result is succeeded
|
|
|
|
|
|
|
|
- name: Create directory hierarchy
|
|
|
|
file:
|
|
|
|
path: '.config/{{ item }}'
|
|
|
|
state: directory
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0755
|
2021-01-29 00:08:39 +00:00
|
|
|
with_items:
|
|
|
|
- 'git/'
|
|
|
|
- 'bash/'
|
2021-03-17 23:25:44 +00:00
|
|
|
become_user: "{{ user.name }}"
|
2021-01-29 00:08:39 +00:00
|
|
|
|
|
|
|
- name: Deploying config files
|
|
|
|
template:
|
|
|
|
src: '{{ item.src }}'
|
|
|
|
dest: '{{ item.dest }}'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0644
|
2021-01-29 00:08:39 +00:00
|
|
|
with_items:
|
|
|
|
- { src: bashrc.j2, dest: .bashrc }
|
|
|
|
- { src: inputrc.j2, dest: .inputrc }
|
|
|
|
- { src: bash_aliases.j2, dest: .config/bash/bash_aliases }
|
|
|
|
- { src: gitconfig.j2, dest: .config/git/config }
|
|
|
|
- { src: tmux.conf.j2, dest: .tmux.conf }
|
2021-03-17 23:25:44 +00:00
|
|
|
become_user: '{{ user.name }}'
|