ansible / ansible-creator

The fastest way to generate all your ansible content!
https://ansible.readthedocs.io/projects/creator/
Apache License 2.0
82 stars 28 forks source link

RFE: Make creator a little smarter about force #163

Open cidrblock opened 5 months ago

cidrblock commented 5 months ago

If a user builds a new project directory with a virtual environment and ansible-dev-tools installed within it, we should be able to scaffold a new project into that same directory without removing all the files.

We could look to see if there is an overlap between the files we intend to scaffold and the current directory contents rather than needing just an completely empty directory.

Qalthos commented 1 week ago

Current idea is to introduce --overwrite option that lists file conflicts and then prompts the user to confirm that these files will be replaced, and deprecate force in favor of overwrite.

A -y or similar option can be added to skip the prompt to simulate current force behavior

Qalthos commented 6 days ago

https://github.com/ansible/ansible-creator/pull/294 does the first half of this, introducing an --overwrite parameter is still pending