changeset 26:19ef091c0ef3 default tip

add setup of shell env through ansible
author Dirk Olmes <dirk.olmes@codedo.de>
date Tue, 15 Nov 2016 16:34:28 +0000
parents ec5b9cbb518c
children
files ansible/hosts ansible/roles/zsh/tasks/main.yml ansible/site.yml
diffstat 3 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
--- /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
+
--- /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