Ansible获取当前日期到变量 - 示例Playbook
-
name: Get current date hosts: localhost gather_facts: False
tasks:
-
name: Fetch current date set_fact: current_date: "{{ ansible_date_time.date }}"
-
name: Print current date debug: var: current_date
-
原文地址: https://www.cveoy.top/t/topic/pS9p 著作权归作者所有。请勿转载和采集!