install essential packages

This commit is contained in:
Jörg Thalheim 2014-08-18 10:12:54 +02:00
parent dd0ced3da6
commit 9dffeb8646
2 changed files with 16 additions and 4 deletions

View File

@ -2,6 +2,15 @@
template: src=resolv.conf.j2 dest=/etc/resolv.conf mode=0644 backup=yes template: src=resolv.conf.j2 dest=/etc/resolv.conf mode=0644 backup=yes
- name: locale.conf - name: locale.conf
template: src=locale.conf.j2 dest=/etc/locale.conf mode=0644 backup=yes 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 - name: /etc/hosts
template: src=hosts.j2 dest=/etc/hosts mode=0644 backup=yes template: src=hosts.j2 dest=/etc/hosts mode=0644 backup=yes
- locale_gen: name=de_DE.UTF-8 state=present - locale_gen: name=de_DE.UTF-8 state=present

View File

@ -1,9 +1,5 @@
- name: Write pacman.conf - name: Write pacman.conf
copy: src=pacman.conf dest=/etc/pacman.conf mode=0644 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 - name: Mask services
file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link
@ -12,4 +8,11 @@
service: name={{ item }} state=stopped enabled=no service: name={{ item }} state=stopped enabled=no
with_items: masked_services 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 - mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present