When using ansible provisioner an
empty directory is left in the remote user's home directory. This directory's name is the one of the user who run packer (plus this symbol ~).
[root@ip-10-122-151-110 ec2-user]# tree -a /home/ec2-user
/home/ec2-user
├── .bash_history
├── .bash_logout
├── .bash_profile
├── .bashrc
├── ~username
│ └── .ansible
│ └── tmp
└── .ssh
└── authorized_keys
Is this intended? Or is it a bug?