T O A C C E L E R A T E Y O U R C A R E E R G R O W T H
a) Create two Ubuntu 22.04 compute instances, one for Ansible master and other for slave
b) Install ansible on master Ubuntu GCP instance
c) Establish ssh connectivity between master and slave by copying ssh public key of master to slave's authorized_keys
d) Add the slave node to ansible host file.
e) Run below ansible commands on slave node:
-
i. Ansible ping module to test connectivity of slave from master
-
ii. Ansible setup module to gather facts
-
iii. Ansible command module to run any Linux command on target machine
a) Write Ansible playbook with below tasks that will run on slave node:
-
i. Check date on the slave node
-
ii. Install Nginx on the slave node
b) Create an Ansible role to perform above set of tasks using roles on the slave node