Hi,

I have added some export task in ~/.profile file & its added but not able 
to source ~/.profile in remote host.

FYI

  - name: Set .profile
    lineinfile:
      path: /root/.profile
      line: export PROMPT_COMMAND='history -a >(logger -t 
"cmdlog[$USER:$PWD] $SSH_CLIENT")'
    tags:
        - PROMPT_CMD  

  - name: source .profile
    shell: source /root/.profile
    args:
       executable: /bin/bash
    tags:
        - PROMPT_CMD

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/deb33cfd-ad6b-42a1-ac30-e9810d7eba2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to