From: Alfredo Deza Date: Tue, 13 Sep 2016 11:23:35 +0000 (+0530) Subject: ansible: create the .profile if it doesn't exist X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=812a1908e5656af0a09a2630e0632b9b96dea86c;p=ceph-build.git ansible: create the .profile if it doesn't exist Signed-off-by: Alfredo Deza --- diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index b5274166..9b71c118 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -42,19 +42,21 @@ - name: set utf-8 for LC_ALL lineinfile: - dest: "/home/{{ jenkins_user }}/.profile" + dest: "/home/{{ jenkins_user }}/.bashrc" regexp: '^export LC_ALL=' line: "export LC_ALL=en_US.UTF-8" + create: true + state: present - name: set utf-8 for LANG lineinfile: - dest: "/home/{{ jenkins_user }}/.profile" + dest: "/home/{{ jenkins_user }}/.bashrc" regexp: '^export LANG=' line: "export LANG=en_US.UTF-8" - name: set utf-8 for LANGUAGE lineinfile: - dest: "/home/{{ jenkins_user }}/.profile" + dest: "/home/{{ jenkins_user }}/.bashrc" regexp: '^export LANGUAGE=' line: "export LANGUAGE=en_US.UTF-8"