From 95a76cadb09a14eb1c4789e4eff873220a3b7b3d Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 19 Dec 2017 13:30:10 +0100 Subject: [PATCH] fixed i3 templating --- install.sh | 2 +- roles/i3-wm/templates/{vagrant => archlinux}/config.j2 | 0 roles/i3-wm/templates/config.j2 | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename roles/i3-wm/templates/{vagrant => archlinux}/config.j2 (100%) diff --git a/install.sh b/install.sh index 553cfd5..3d3b016 100755 --- a/install.sh +++ b/install.sh @@ -17,7 +17,7 @@ fi echo "### LIST TASKS #################################################################" -ansible-playbook -i "localhost," -c local install.yml --list-tasks -t desktop | grep TAGS | egrep -v 'play|debug|include_role' | sed 's/\ *\(.*\)TAGS.*$/\1/' +ansible-playbook -i "localhost," -c local install.yml --list-tasks -t $1 | grep TAGS | egrep -v 'play|debug|include_role' | sed 's/\ *\(.*\)TAGS.*$/\1/' echo "Do you want to dryrun ? (y/N)" read ok diff --git a/roles/i3-wm/templates/vagrant/config.j2 b/roles/i3-wm/templates/archlinux/config.j2 similarity index 100% rename from roles/i3-wm/templates/vagrant/config.j2 rename to roles/i3-wm/templates/archlinux/config.j2 diff --git a/roles/i3-wm/templates/config.j2 b/roles/i3-wm/templates/config.j2 index 60bfc63..449f497 100644 --- a/roles/i3-wm/templates/config.j2 +++ b/roles/i3-wm/templates/config.j2 @@ -154,7 +154,7 @@ bindsym $mod+Shift+ccedilla move container to workspace $tag9 bindsym $mod+Shift+agrave move container to workspace $tag10 ### BEGIN includes -{% include {{ ansible_hostname }}/config.j2 %} +{% include ansible_hostname + '/config.j2' ignore missing %} ### END includes # reload the configuration file