ansible:when(exists、not exists、defined、undefined、none、success、failure、change、skip)
目录标题 1. exists和not exists 2. defined、undefined、none 3. success、failure、change、skip 1. exists和not exists exists: [root@server4 pd]# cat pd3.yml --- - hosts: testB remote_user: root gather_facts: no var…