43 lines
755 B
YAML

---
# tasks file for roles/base_setup
- name: Update package cache
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
- name: Install basic packages
package:
name: "{{ item }}"
state: present
loop:
- git
- vim
- tmux
- python3
- python3-pip
- python3-venv
- curl
- wget
- build-essential
- rsync
- bash-completion
- apt-transport-https
- ca-certificates
- gnupg
- name: Create user
user:
name: "{{ base_username }}"
groups: sudo
shell: /bin/bash
create_home: true
- name: Set up authorized key for user
authorized_key:
user: "{{ base_username }}"
key: "{{ base_user_key }}"
- name: Set timezone
timezone:
name: "{{ base_timezone }}"