2024-10-06 21:24:57 +02:00
|
|
|
---
|
|
|
|
- name: Copy new files and directories
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "files/{{ item }}"
|
|
|
|
dest: "~/{{ item }}"
|
|
|
|
loop:
|
|
|
|
- ".config"
|
|
|
|
- ".face"
|
|
|
|
- ".gitconfig"
|
|
|
|
- ".gtkrc-2.0"
|
|
|
|
- ".local"
|
|
|
|
- ".ssh"
|
|
|
|
- "scripts"
|
|
|
|
|
2024-10-07 16:39:07 +02:00
|
|
|
- name: Copy new files and directories (root)
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "files/{{ item }}"
|
|
|
|
dest: "~/{{ item }}"
|
|
|
|
loop:
|
|
|
|
- "etc"
|
|
|
|
become: true
|
|
|
|
|
2024-10-06 21:24:57 +02:00
|
|
|
- name: Symlink xdg environment variables
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "~/.config/user-dirs.dirs"
|
|
|
|
dest: "~/.config/environment.d/user-dirs.dirs.conf"
|
|
|
|
state: "link"
|
|
|
|
|
|
|
|
- name: Download bash cat
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: https://github.com/exu-g/bash-cat-with-cat.git
|
|
|
|
dest: "/tmp/bash-cat-with-cat"
|
|
|
|
|
|
|
|
- name: Copy bash cat to scripts
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "/tmp/bash-cat-with-cat/cat.sh"
|
|
|
|
dest: "~/scripts/pieces/cat.sh"
|
|
|
|
mode: "0755"
|
2024-10-07 16:39:07 +02:00
|
|
|
|
|
|
|
- name: Reload user systemd services
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
daemon_reload: true
|
|
|
|
|
|
|
|
- name: Enable fstrim
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
name: fstrim.timer
|
|
|
|
state: "started"
|
|
|
|
enabled: true
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Enable NTP
|
|
|
|
ansible.builtin.command: timedatectl set-ntp true
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Enable ssh-agent
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
name: ssh-agent
|
|
|
|
state: "restarted"
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
- name: Enable vnstat
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
name: vnstat
|
|
|
|
state: "started"
|
|
|
|
enabled: true
|
|
|
|
become: true
|