标签: ansible
当您使用backup选项时,如何更改Ansible模板模块创建的文件的日期格式?
backup
例如,命令:
template: src=supervisord.conf.j2 dest=/etc/supervisor/supervisord.conf backup=yes
创建备份文件:supervisord.conf.2015-08-24@12:17~
supervisord.conf.2015-08-24@12:17~
我希望它像:supervisord.conf.20150824_1217
supervisord.conf.20150824_1217