Browse Source

install essential packages

master
Jörg Thalheim 7 years ago
parent
commit
9dffeb8646
  1. 9
      roles/common/tasks/main.yml
  2. 11
      roles/container/tasks/main.yml

9
roles/common/tasks/main.yml

@ -2,6 +2,15 @@
template: src=resolv.conf.j2 dest=/etc/resolv.conf mode=0644 backup=yes
- name: locale.conf
template: src=locale.conf.j2 dest=/etc/locale.conf mode=0644 backup=yes
- name: update pacman cache
pacman: update_cache=yes
- name: install essential packages
pacman: name={{ item }} state=present
with_items:
- htop
- strace
- cacert-dot-org
- the_silver_searcher
- name: /etc/hosts
template: src=hosts.j2 dest=/etc/hosts mode=0644 backup=yes
- locale_gen: name=de_DE.UTF-8 state=present

11
roles/container/tasks/main.yml

@ -1,9 +1,5 @@
- name: Write pacman.conf
copy: src=pacman.conf dest=/etc/pacman.conf mode=0644
- name: update cache htop
pacman: update_cache=yes
- name: install htop
pacman: name=htop state=present
- name: Mask services
file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link
@ -12,4 +8,11 @@
service: name={{ item }} state=stopped enabled=no
with_items: masked_services
- name: install essential packages
pacman: name={{ item }} state=present
with_items:
- htop
- strace
- cacert-dot-org
- the_silver_searcher
- mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present
Loading…
Cancel
Save