37 lines
762 B
YAML
37 lines
762 B
YAML
---
|
|
- name: Install cli utilities
|
|
package:
|
|
name:
|
|
- bash
|
|
- bash-completion
|
|
- bat
|
|
- git
|
|
- sl
|
|
- htop
|
|
- tmux
|
|
- tree
|
|
register: pkg_result
|
|
retries: 3
|
|
until: pkg_result is succeeded
|
|
become: yes
|
|
when: user.root
|
|
|
|
- name: Create directory hierarchy
|
|
file:
|
|
path: '.config/{{ item }}'
|
|
state: directory
|
|
with_items:
|
|
- 'git/'
|
|
- 'bash/'
|
|
|
|
- name: Deploying config files
|
|
template:
|
|
src: '{{ item.src }}'
|
|
dest: '{{ item.dest }}'
|
|
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 }
|