Skip to content

05. Ansible start

Siarhei P edited this page Aug 24, 2023 · 8 revisions

Homework Assignment 1: Setting Up Ansible

  1. Install Ansible on your local machine or a virtual environment.
  2. Create a directory for your Ansible playbooks and configuration files.
  3. Write an Ansible playbook that prints "Hello, Ansible!" to the console.
  4. Run the playbook using the ansible-playbook command and ensure it executes successfully.
  5. Document the installation process and the steps you took to run the playbook.

Homework Assignment 2: Managing Remote Hosts

  1. Set up a virtual machine (or use an existing one in IT-ACADEMY DC) to act as your remote target.
  2. Ensure SSH access to the remote machine from your local machine.
  3. Write an Ansible playbook to install a basic package (e.g., vim or htop) on the remote host.
  4. Use inventory files to manage the connection details for the remote host.
  5. Execute the playbook and verify that the package is installed on the remote host.

Homework Assignment 3: Managing Users and Groups

  1. Create a playbook to manage users and groups on a remote host.
  2. Define tasks to create a new user, assign the user to a specific group, and set a password.
  3. Parameterize the playbook to allow dynamic user and group names.
  4. Execute the playbook and verify that the user and group configurations are applied.

Your ansible project add to folder 05.Ansible.start, create README.md with short report inside and prepare PR