Ansible Playbook Task 撰寫建議
ansible.builtin.{shell, command} 是萬用模組
• 針對 Azure 環境 Ansible Module
採用建議順序:
1. 官方提供 Ansible Collection
2. azure-cli +
ansible.builtin.{command, shell}
3. RESTful API
• Ansible 所提供的 Azure 模組不一
定完全跟 azure-cli 所提供的功能
保持一樣,故只要覺得使用上有異
樣,建議可以採方式 2: azure-cli +
ansible.builtin.{command, shell}
進行撰寫