--- - hosts: all tasks: - name: install deps apk: name={{ item }} state=present update_cache=yes with_items: - ack - build-base - curl - git - gcc - imagemagick - libstdc++ - lftp - make - musl-dev - nodejs - perl - python3 - python3-dev - python-dev become: yes - name: pip status stat: path=/usr/bin/pip register: pip - name: install pip shell: curl https://bootstrap.pypa.io/get-pip.py | python3 become: yes when: pip.stat.exists == False - name: install pip packages pip: name={{ item }} with_items: - beautifulsoup4 - cookiecutter==1.2.1 - ipython[notebook]==2.4.1 - markdown - pelican==3.6.3 - tzlocal - virtualenv become: yes - name: clone pelican-plugins git: repo=git@github.com:xsteadfastx/pelican-plugins.git dest=/vagrant/pelican-plugins accept_hostkey=yes - name: install js packages npm: name={{ item }} path=/vagrant state=present with_items: - bower - gulp - gulp-rename - gulp-less - gulp-minify-css - name: set timezone copy: content="Europe/Berlin" dest=/etc/timezone owner=root group=root mode=0644 backup=yes become: yes - name: install ansible pip: name=ansible virtualenv=~/ansible virtualenv_python=python state=latest - name: clone batcave git: repo=https://github.com/xsteadfastx/batcave.git dest=~/batcave - name: run batcave command: ~/ansible/bin/ansible-playbook -i hosts base.yml -c local chdir=~/batcave - name: export variables lineinfile: dest=~/.zshrc line='{{ item }}' with_items: - export PYTHONIOENCODING=UTF-8 - export LC_ALL=C.UTF-8 - name: no git colors command: git config --global color.ui false - name: remove some deps apk: name={{ item }} state=absent with_items: - build-base - python3-dev - python-dev become: yes - name: install make apk: name=make state=present become: yes