ansible-palybook 执行yaml脚本
    ansible-galaxy 初始化role(一个任务)

    1. [root@k8s-master ansible]# ansible-galaxy init conf_nginx
    2. - Role conf_nginx was created successfully
    3. [root@k8s-master ansible]# tree
    4. .
    5. ├── conf_nginx
    6. ├── defaults
    7. └── main.yml
    8. ├── files
    9. ├── handlers
    10. └── main.yml
    11. ├── meta
    12. └── main.yml
    13. ├── README.md
    14. ├── tasks
    15. └── main.yml
    16. ├── templates
    17. ├── tests
    18. ├── inventory
    19. └── test.yml
    20. └── vars
    21. └── main.yml
    22. ├── domain.conf
    23. ├── new
    24. ├── files
    25. └── avalongames.cn.conf
    26. ├── handlers
    27. └── main.yml
    28. ├── tasks
    29. └── main.yml
    30. └── vars
    31. └── main.yml
    32. └── update.yml
    33. 14 directories, 14 files