摘要:
- hosts: serverf vars: persons: user1: name: demon age: 12 user2: name: student age: 20 tasks: - name: print message debug: msg: | {% for item in pers 阅读全文
摘要:
- name: set public key on remote hosts & set reomte hosts sudoers file hosts: all # 此脚本要求所有的主机 root 用户密码相同 become: no remote_user: root vars: - remote 阅读全文
摘要:
- hosts: serverf vars: my_name: demOn stUdent tasks: - name: print message debug: msg: - "This is my name {{ my_name }}" # 输出原始信息 - "This is my name { 阅读全文