2024年4月3日 星期三

【IT Notes】RHCE測驗第四題 INSTALL PACKAGES

Create a playbook called /home/student/ansible/packages.yml that:

  • Installs the php and mariadb packages on hosts in the devtest, 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來部署。

【IT Notes】RHCE測驗第三題 INSTALL A COLLECTION

Install the following collection artifacts available  from http://example.classroom.com/materials to workstation as the user student

  • redhat-rhel_system_roles-1.16.2.tar.gz

  • ansible-posix-1.4.0.tar.gz

  • community-general-4.3.0.tar.gz

The collections should be installed into the default collections directory /home/student/ansible/mycollections


【題前說明】
 這題在RHCE8是沒有的,以前的roles和collections只要用指令yum install rhel-system-roles就幫我都安裝好了,但RHCE9就等要全部手動處理,如果這題做不出來的話,後面許多題目也就沒法繼續進下去,roles和collections裡面包含著很多後面解題要用到的function,而且這是一個新課程內容,記得去年以前都還沒有上過,不過其實也沒有很困難,只是要很注意每一步驟不要做錯了。

【少年回憶】尋夢谷

 「尋夢谷」這個地名,在我人生中是一個很深刻的存在。那大約是國中二年級的事情了吧,距離現在快要三十年了。後來重新找到這個地方的時候,這裡只剩下大門和一處房舍,尤其是後者,讓我一看到馬上就能辨識出來;至於剩下的其他地方,如今只剩下一片荒煙蔓草、汽車駕訓班和工寮。 為什麼此處留有我那...