|
@@ -8,3 +8,13 @@
|
|
|
command: ./setup.sh
|
|
|
args:
|
|
|
chdir: '{{ remote_code_path }}'
|
|
|
+
|
|
|
+- name: Copy bash_profile content
|
|
|
+ shell: cat ~/.bash_profile
|
|
|
+ register: bash_data
|
|
|
+
|
|
|
+- name: Copy bash_profile content to bashrc for non-interactive sessions
|
|
|
+ blockinfile:
|
|
|
+ block: '{{ bash_data.stdout }}'
|
|
|
+ path: ~/.bashrc
|
|
|
+ insertbefore: BOF
|