---
- hosts: all
vars:
packages: [rsync, git, htop, sl, atool]
tasks:
- name: install packages for pacman
pacman: pkg={{ item }} state=installed
with_items: packages
sudo: yes
when: ansible_pkg_mgr == "pacman"
- name: install packages
apt: name={{ item }} state=present
with_items: packages
sudo: yes
when: ansible_pkg_mgr == "apt"
- name: install script colortable16
get_url: url=https://gist.github.com/10sr/6852317/raw/colortable16.sh dest={{ ansible_env.HOME }}/.local/bin/colortable16.sh mode=0755
- name: install script 256colors
get_url: url=https://gist.github.com/10sr/6852331/raw/256colors2.pl dest={{ ansible_env.HOME }}/.local/bin/256colors2.pl mode=0755
# handlers:
# - name: restart ntpd
# action: service name=ntpd state=restarted