Releases: mihsta/ansible_lab
Releases · mihsta/ansible_lab
Task03.2 complete
The task03.2 description:
- Write a role that installs and enables FTP (vsftpd package), opens the necessary ports.
- Define the required ftp server configuration parameters and use them in the template for the vsftpd.conf configuration file:
- allowed anonymous access to the / var / ftp / pub folder and upload files in the / var / ftp / pub / upload folder;
- the required permission and the corresponding SELinux are configured: "ftpd_anon_write" boolean value "on" (edited).
how to use:
bash play.sh
sudo yum -y ftp
ftp node1
anonymous
password
cd pub
get README
sestatus -v -b
Task03.1 complete
The task03.1 description:
- Make a role for the Apache installation using the playbook from task01.
The requirements are the same: - installation of the httpd package;
- enabling the web server service and checking its operation;
- creating a file /var/www/html/index.html;
- opening the firewall ports required for the web server to work.
There should be use of variables (including facts), handlers, templates, etc.
Task02 complete
The task02 description:
Write a playbook that creates users Alice, Bob, Carol.
For each user, you must specify:
- name;
- email address in the comment ([email protected]);
- home folder;
- encrypted password.
The password must be an encrypted variable or from a separate encrypted file of your choice. Only encrypt the password, you don't need to encrypt anything else.
You do not need to change the password for the already created accounts.
how to use:
bash play.sh
Full Changelog: task01...task02
Task01 complete
Task 01
- 1. Install httpd
- 2. Uninstall httpd
- 3. Edit grub default params