/Ansible

Linux system administration automation

Primary LanguageJinja

Ansible Lab Review

Lab 6

6.1, Requirements

Write Roles Ansible:

  • Create user.
  • Disable SSH Password log in.
  • Grant sudo permission for user.
  • Add Authorized Key for user ssh by ssh-key.

6.2, Labbing

  • Source: Clone above.
  • Result: image
  • Checking:
1. Creat User

image image image

2. Disable SSH

image image

3. Grant sudo permission for user

image image image

4. Add Authorized Key

image image image

Lab 7

7.1, Requirements

Write Roles Ansible:

  • Install DHCP Server (Both Ubuntu & CentOS).
  • Config DNS for domains:
    • test1.com - 1.2.3.4
    • test2.com - 1.2.3.4

7.2, Labbing

  • Source: Clone above.
  • Result: image
  • Checking:
1. Install DHCP Server (Both Ubuntu & CentOS)

image image

2. Config DNS for domains:
  • Ubuntu: image
  • CentOS: image