archlinux-common/tasks/main.yml

53 lines
964 B
YAML

---
- name: Common | Set hostname
hostname:
name: "{{ common_hostname }}"
- name: Common | Set available locales
template:
src: locale.gen.j2
dest: /etc/locale.gen
mode: 0644
owner: root
group: root
notify: Common | Generate locales
- name: Common | Run handlers
meta: flush_handlers
- name: Common | Set system locale
template:
src: locale.conf.j2
mode: 0644
owner: root
group: root
dest: /etc/locale.conf
- name: Common | Set timezone
timezone:
name: "{{ system_timezone }}"
- name: Common | Deploy pacman main config
template:
src: pacman.conf.j2
dest: /etc/pacman.conf
mode: 0644
owner: root
group: root
- name: Common | Setup pacman repos
template:
src: mirrorlist.j2
dest: /etc/pacman.d/mirrorlist
mode: 0644
owner: root
group: root
- name: Common | Install useful common packages
pacman:
state: present
name: "{{ common_packages }}"