Create a playbook called /home/student/ansible/packages.yml that:
Installs the php and mariadb packages on hosts in the dev, test, and prod host groups
Installs the RPM Development Tools package group on hosts in the dev host group
Updates all packages to the latest version on hosts in the dev host group
這是很入門的考題,目的只是要安裝php和mariadb在node1、node2、node3和node4上;然後node1上再多裝dev tools,並且更新每一台node上的套件至最新版本,全部動作都用ansible來部署。