Browse Source

Add bashrc step to setup

Anuj Bansal 3 years ago
parent
commit
9579ef8d81
1 changed files with 10 additions and 0 deletions
  1. 10 0
      devops/aws/roles/common/tasks/run-setup.yml

+ 10 - 0
devops/aws/roles/common/tasks/run-setup.yml

@@ -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