- name: restarting .bash_profile
command: chdir=/home/ec2-user/ source .bash_profile
を使用していたときの.bash_profileファイルを見つけることができない私は、.bash_profileのファイルのソースコマンドを使用しようとしているが、それはエラーを投げています:Ansible - 私は、次のコード
{"changed": false, "cmd": "source .bash_profile", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}
しかし、ファイルは指定されたパスに存在します。 .bash_profile
ファイルに対してそのコマンドを実行できる方法はありますか?