ansible/roles/common/tasks/main.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2014-08-18 08:12:54 +00:00
- name: update pacman cache
pacman: update_cache=yes
2016-11-25 19:51:38 +00:00
- fetch: src=/etc/hosts dest=/tmp/fetched
- name: remove silver-searcher-git
pacman:
name="silver-searcher-git"
state=absent
2014-08-18 08:12:54 +00:00
- name: install essential packages
pacman:
2016-11-25 19:51:38 +00:00
name="htop,strace,zsh,git,sudo,neovim,python2-neovim,python-neovim,the_silver_searcher"
state=present
- name: install packages from repo
pacman:
2016-11-25 19:51:38 +00:00
name="ca-certificates-dn42,neovim-symlinks"
state=present
# fails on login, because it does not have the repo
ignore_errors: yes
- file: src=/usr/bin/nvim dest=/usr/local/bin/vim state=link
2014-08-06 07:10:15 +00:00
- locale_gen: name=de_DE.UTF-8 state=present
- locale_gen: name=en_DK.UTF-8 state=present
2016-11-25 19:51:38 +00:00
#- command: /usr/bin/timedatectl set-timezone UTC
2015-04-09 15:37:55 +00:00
- name: common configuration
template: src={{ item.from }}.j2 dest={{ item.to }} mode=0644 backup=no
with_items:
- { from: hosts, to: /etc/hosts }
2016-11-25 19:51:38 +00:00
- name: create directories for files
file: path="{{ item.to | dirname }}" recurse=yes state=directory
with_items: "{{static_files}}"
2015-04-09 15:37:55 +00:00
- name: common configuration
2016-11-25 19:51:38 +00:00
copy: src="{{ item.from }}" dest={{ item.to }}
with_items: "{{static_files}}"