Create a file called requirements.yml in /home/sandy/ansible/roles to install two roles. The source for the first role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. The roles should be installed in /home/sandy/ansible/roles.
正解:
in /home/sandy/ansible/roles vim requirements.yml Run the requirements file from the roles directory: ansible-galaxy install -r requirements.yml -p /home/sandy/ansible/roles