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,而且這是一個新課程內容,記得去年以前都還沒有上過,不過其實也沒有很困難,只是要很注意每一步驟不要做錯了。

宜蘭又淹水

 突然來了一個看起來不是很強的颱風,結果外圍環流一夜之間就把宜蘭給淹了,而且受害最嚴重的蘇澳又跟15年前的梅姬颱風一樣,把整個小鎮淹了一層樓高,那時候我還在金六結營區,時間也是10~11月左右,彷彿又像是歷史重演一般。