ansible-base/tasks/main.yaml
2021-02-23 18:56:01 +01:00

41 lines
799 B
YAML

---
- name: Upgrade distro
apt: update_cache=yes upgrade=yes cache_valid_time=1800
tags: never
- name: Show current host's hostname (from inventory)
debug: var=inventory_hostname
- name: Set hostname
hostname:
name: "{{ inventory_hostname }}"
- name: Install base pkgs
apt:
name: "{{ base_pkgs }}"
state: present
- name: Set Europe/Rome timezone
timezone:
name: Europe/Rome
- name: Ensure fd link exists
file:
src: /usr/bin/fdfind
dest: /usr/local/bin/fd
state: link
- name: Ensure locale.get is populated with the wanted locales
template:
src: locale.gen.j2
dest: /etc/locale.gen
mode: 0644
owner: root
group: root
- name: Build locales
locale_gen:
name: "{{ item.name }}"
state: present
loop: "{{ base_locales }}"