# HG changeset patch # User Dirk Olmes # Date 1479227668 0 # Node ID 19ef091c0ef36b25d78592a3f806ee09eab52b38 # Parent ec5b9cbb518c32b1f66eaaa98f106cd998b001b4 add setup of shell env through ansible diff -r ec5b9cbb518c -r 19ef091c0ef3 ansible/hosts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ansible/hosts Tue Nov 15 16:34:28 2016 +0000 @@ -0,0 +1,2 @@ +[test] +192.168.66.77 ansible_user=liveuser diff -r ec5b9cbb518c -r 19ef091c0ef3 ansible/roles/zsh/tasks/main.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ansible/roles/zsh/tasks/main.yml Tue Nov 15 16:34:28 2016 +0000 @@ -0,0 +1,21 @@ +--- +- name: Install zsh + package: name=zsh state=latest + become: yes + +- name: Install mercurial + package: name=mercurial state=latest + become: yes + +- name: Setup mercurial proxy + command: hg --config http_proxy.host=http://192.168.66.66:3128 + +- name: Check out zsh environment + hg: repo=https://xanthippe.duckdns.org/hg/zsh-env dest={{ansible_env.HOME}}/.zsh-env + +#- name: test +# debug: msg="Home is {{ ansible_env.HOME }}" + +#- name: Create Symlink +# file: path=${HOME}/.zsh-env state=link src=${HOME}/.zsh-env/zshrc + diff -r ec5b9cbb518c -r 19ef091c0ef3 ansible/site.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ansible/site.yml Tue Nov 15 16:34:28 2016 +0000 @@ -0,0 +1,4 @@ +--- +- hosts: all + roles: + - zsh