From 45aeca3d4388f1149c4d8148ed768a336753471b Mon Sep 17 00:00:00 2001 From: Samim Mirhosseini Date: Mon, 29 Jan 2018 20:41:33 -0500 Subject: [PATCH] adding env Bakelet --- env/env.yml.mustache | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 env/env.yml.mustache diff --git a/env/env.yml.mustache b/env/env.yml.mustache new file mode 100644 index 00000000..a9ce3894 --- /dev/null +++ b/env/env.yml.mustache @@ -0,0 +1,14 @@ +--- +- hosts: all + become: yes + + tasks: + {{#env}} + - name: Adding the path in the bashrc files + lineinfile: + dest: /home/{{=<% %>=}}{{ansible_user}}<%={{ }}=%>/.bashrc + line: 'export {{KEY}}={{VALUE}}' + insertafter: 'EOF' + state: present + + {{/env}}