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

【IT Notes】透過api移轉Gmail到Exchange

 在雲端裡面串接api不是一件很好學的技術,第一次有機會學習到將GWS的Gmail信件全部轉移到M365的Exchange,其實方法很多種,像以前用的pst檔匯出轉移的方式等,但透過api串接,可以批次和排程轉移,是非常方便且準確的作法。唯一讓人感到困難的是學習成本不小,通常需要...