- hosts: all
user: app
become: yes
gather_facts: no
tasks:
- name: 生成随机数ID
set_fact:
randome_number: "{{ 1000 | random | to_uuid | lower }}"
- debug: var=randome_number
- hosts: all
user: app
become: yes
gather_facts: no
tasks:
- name: 生成随机数ID
set_fact:
randome_number: "{{ 1000 | random | to_uuid | lower }}"
- debug: var=randome_number
本文标题:ansible 生成随机数
本文链接:https://www.haomeiwen.com/subject/ipwwmhtx.html
网友评论