-
Notifications
You must be signed in to change notification settings - Fork 274
05. Ansible start
Siarhei P edited this page Aug 24, 2023
·
8 revisions
- Install Ansible on your local machine or a virtual environment.
- Create a directory for your Ansible playbooks and configuration files.
- Write an Ansible playbook that prints "Hello, Ansible!" to the console.
- Run the playbook using the
ansible-playbook
command and ensure it executes successfully. - Document the installation process and the steps you took to run the playbook.
- Set up a virtual machine (or use an existing one in IT-ACADEMY DC) to act as your remote target.
- Ensure SSH access to the remote machine from your local machine.
- Write an Ansible playbook to install a basic package (e.g.,
vim
orhtop
) on the remote host. - Use inventory files to manage the connection details for the remote host.
- Execute the playbook and verify that the package is installed on the remote host.
- Create a playbook to manage users and groups on a remote host.
- Define tasks to create a new user, assign the user to a specific group, and set a password.
- Parameterize the playbook to allow dynamic user and group names.
- 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