ansible中常用的模块详解: file模块 ansible内置的可以查看模块用法的命令如下: [root@docker5 ~]# ansible-doc -s file - name: Sets attributes of files file: attributes: # Attributes the file or directory should have. To get supported flags look at the man page for `chattr' on the…
面试的过程中经常被问到使用过那些python模块,然后我大脑就出现了一片空白各种模块一顿说,其实一点顺序也没有然后给面试官造成的印象就是自己是否真实的用到这些模块,所以总结下自己实际工作中常用的模块: 时间模块 time datatime 时间模块常用的方法 1.获取时间戳 import time time.time() 2.获取当前日期 from datetime import datetime datetime.now() 3.获取昨天.明天的日期(获取上个月和下个月同理) from dat…