1. How would you ensure that a specific package is installed on multiple servers? Answer: You can use the package module in an Ansible playbook to ensure a specific package is installed across multiple servers. For example: - name: Ensure package is installed package: name: httpd state: present 2. How do you handle different environments (development, testing, production) with Ansible? Answer: You can manage different environments by using separate inventory files and group variables. Each environment can have its own inventory file (e.g., dev.ini , test.ini , prod.ini ), and you can define environment-specific variables using group_vars directories. This allows you to target specific groups or environments. 3. How would you restart a service after updating a configuration file? Answer: Use the notify feature to trigger a handler that restarts the service once the configuration file is updated. For example: - n...