This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/system/tasks/main.yml

66 lines
1.5 KiB
YAML
Raw Normal View History

2022-12-02 20:10:38 +01:00
- name: Install APT packages
become: true
apt:
pkg:
- git
- make
2022-11-26 11:34:13 +01:00
- ripgrep
2022-11-26 17:58:49 +01:00
- curl
2022-11-26 18:11:26 +01:00
- unzip
2022-11-26 18:16:41 +01:00
- libreoffice-calc
- libreoffice-impress
- libreoffice-writer
- gimp
2022-11-28 20:13:24 +01:00
- tree
2022-11-28 20:21:38 +01:00
- wireshark
- units
- unrar
2023-02-26 14:00:36 +01:00
- vim
2023-02-26 14:13:58 +01:00
- telegram-desktop
2023-03-03 17:08:27 +01:00
- wget
2022-11-26 17:33:21 +01:00
- name: Install .gitconfig
2022-11-26 11:34:13 +01:00
template:
src: "{{ role_path }}/templates/.gitconfig.j2"
2022-11-26 17:58:49 +01:00
dest: ~/.gitconfig
2022-12-28 10:28:37 +01:00
- name: Create repos directory
file:
path: ~/repos
state: directory
2023-02-11 21:12:19 +01:00
- name: Download Hashicorp signing key
become: true
apt_key:
keyserver: keyserver.ubuntu.com
id: "798AEC654E5C15428C8E42EEAA16FCBCA621E701"
2023-02-26 01:17:16 +01:00
keyring: /etc/apt/trusted.gpg.d/hashicorp.gpg
2023-02-11 21:12:19 +01:00
- name: Install Hashicorp repository
become: true
apt_repository:
2023-02-26 01:17:16 +01:00
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/hashicorp.gpg] https://apt.releases.hashicorp.com {{ distribution_release }} main"
2023-02-11 21:12:19 +01:00
register: apt_repository
- name: Update APT cache
become: true
apt:
update_cache: true
when: apt_repository.changed
2023-02-20 09:32:47 +01:00
- name: Create ssh config directory
file:
path: ~/.ssh
state: directory
mode: 0700
- name: Copy ssh config
copy:
src: "{{ role_path }}/files/ssh_config"
dest: ~/.ssh/config
mode: 0600
2023-02-22 22:04:05 +01:00
- name: Copy systemd ssh-agent service
2023-02-22 23:52:51 +01:00
become: true
2023-02-22 22:04:05 +01:00
template:
src: "{{ role_path }}/templates/ssh-agent.service.j2"
dest: /etc/systemd/user/ssh-agent.service
- name: Enable ssh-agent service
systemd:
name: ssh-agent
enabled: true
scope: user
state: started