ansible / network

Ansible collection for network devices
16 stars 16 forks source link

save network device config without overwriting previous file #3

Closed mkazam closed 5 years ago

mkazam commented 5 years ago

Hi, I'm using Ansible 2.7 & the task below works fine but I'd like to change the save option so that the previously saved files are not overwritten. Can someone please advise on how to make the required change.

tasks:

Regards, mk

cidrblock commented 5 years ago

Ansible issues should be opened in ansible/ansible in the future, this repo isn't watched for issues currently.

Try adding an timestamp to your output filename {{ansible_date_time.date}} this will allow previous files to be in place.