This is my practice of Ansible based on Official BestPractice
ansible-playbook -i inventory/production/hosts playbook.yml
ansible-playbook -i inventory/production/hosts playbook.yml --tags chrony
ansible-playbook -i inventory/production/hosts playbook.yml --limit web
.
├── inventory
│ ├── production
│ │ ├── group_vars
│ │ │ ├── all.yml
│ │ │ ├── app.yml
│ │ │ ├── db.yml
│ │ │ └── web.yml
│ │ ├── hosts
│ │ └── host_vars
│ │ └── webserver2.yml
│ └── staging
│ ├── group_vars
│ │ ├── all.yml
│ │ ├── app.yml
│ │ ├── db.yml
│ │ └── web.yml
│ ├── hosts
│ └── host_vars
├── playbook.yml
├── README.md
└── roles
└── common
├── create_directory
│ ├── tasks
│ │ └── main.yml
│ └── tests
│ ├── inventory
│ └── test.yml
├── install_packages
│ ├── defaults
│ │ └── main.yml
│ ├── tasks
│ │ └── main.yml
│ └── tests
│ ├── inventory
│ └── test.yml
└── set_chrony
├── defaults
│ └── main.yml
├── handlers
│ └── main.yml
├── tasks
│ └── main.yml
├── templates
│ └── chrony.j2
└── tests
├── inventory
└── test.yml
22 directories, 26 files