Remove laptop-specific code

Signed-off-by: Emmy D'Anello <ynerant@crans.org>
This commit is contained in:
2023-01-12 12:50:19 +01:00
parent 7f4f846408
commit 414950f4b5
48 changed files with 7 additions and 1627 deletions

View File

@ -1,20 +1,21 @@
---
- name: Install cli utilities
- name: Install useful utilities
package:
name:
- bash
- bash-completion
- bat
- curl
- "{% if ansible_os_family == 'Debian' %}dnsutils{% else %}bind-tools{% endif %}"
- dnsutils
- git
- htop
- man
- molly-guard
- mtr-tiny
- needrestart
- "mtr{% if ansible_os_family == 'Debian' %}-tiny{% endif %}"
- sl
- htop
- patch
- rsync
- sl
- sudo
- tmux
- traceroute
@ -24,30 +25,3 @@
register: pkg_result
retries: 3
until: pkg_result is succeeded
- name: Create directory hierarchy
file:
path: '.config/{{ item }}'
state: directory
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0755
with_items:
- 'git/'
- 'bash/'
become_user: "{{ user.name }}"
- name: Deploying config files
template:
src: '{{ item.src }}'
dest: '{{ item.dest }}'
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0644
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 }
become_user: '{{ user.name }}'