ansible/roles/common/tasks/main.yml

25 lines
914 B
YAML

- name: update pacman cache
pacman: update_cache=yes
- name: install essential packages
pacman:
name="htop,strace,the_silver_searcher,zsh,git,sudo,neovim-git,ca-certificates-dn42"
state=present
- file: src=/usr/bin/nvim dest=/usr/local/bin/vim state=link
- locale_gen: name=de_DE.UTF-8 state=present
- locale_gen: name=en_DK.UTF-8 state=present
- command: /usr/bin/timedatectl set-timezone UTC
- name: common configuration
template: src={{ item.from }}.j2 dest={{ item.to }} mode=0644 backup=no
with_items:
- { from: hosts, to: /etc/hosts }
- name: common configuration
copy: src={{ item.from }} dest={{ item.to }}
with_items:
- { from: locale.conf, to: /etc/locale.conf }
- { from: whois.conf, to: /etc/whois.conf }
- { from: resolv.conf, to: /etc/resolv.conf }
- { from: logind.conf, to: /etc/systemd/system/logind.conf }
- { from: locale.gen, to: /etc/locale.gen }