]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: create the .profile if it doesn't exist 477/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 13 Sep 2016 11:23:35 +0000 (16:53 +0530)
committerAlfredo Deza <adeza@redhat.com>
Tue, 13 Sep 2016 11:46:00 +0000 (17:16 +0530)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/examples/slave.yml

index b52741664b625e63d28c9cc95a86b2327ba6e1b9..9b71c118b2c6f80477483055c8124a0fbdb804c2 100644 (file)
 
     - 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"