Lab 4 - Tasks¶
Mandatory¶
Create a YAML List¶
create an empty file and save it as
lab4.ymledit the file and define a YAML list named
ntp_serversand add this items:- 0.ch.pool.ntp.org
- 1.ch.pool.ntp.org
- 2.ch.pool.ntp.org
- 3.ch.pool.ntp.org
Create a YAML dictionary¶
add a dictionary named
ntp_settingswith these key/values- driftfile ->
/var/lib/ntp/ntp.drift - restrict ->
127.0.0.1 - statistics ->
loopstats peerstats clockstats
- driftfile ->
Run some ad-hoc tasks¶
- Install
telnetviayummodule onweb2.<firstname>.lab - Run the installation again
- Remove the package
telnetviayummodule onweb2.<firstname>.lab - Run the deinstallation again
Install tree¶
- Install
treeviaaptmodule onweb1.<firstname>.lab
Create your first YAML task¶
Create a task in YAML style for a
ntpinstallation viaapt. Save the tasks also in the filelab4.ymlstate-> latest