- "Do I Know This Already?" Quiz
- Using Modules to Manipulate Files
- Managing SELinux Properties
- Using Jinja2 Templates
- Summary
- Exam Preparation Tasks
- Review All Key Topics
- Memory Tables
- Define Key Terms
- Review Questions
- Exercise Answers
- Lab 8-1: Generate an /etc/hosts File
- Lab 8-2: Manage a vsftpd Service
Lab 8-2: Manage a vsftpd Service
Write a playbook that uses at least two plays to install a vsftpd service, configure the vsftpd service using templates, and configure permissions as well as SELinux. Apply the following requirements:
Install, start, and enable the vsftpd service. Also open a port in the firewall to make it accessible.
Use the /etc/vsftpd/vsftpd.conf file to generate a template. In this template, you should use the following variables to configure specific settings. Replace these settings with the variables and leave all else unmodified:
anonymous_enable: yes
local_enable: yes
write_enable: yes
anon_upload_enable: yes
Set permissions on the /var/ftp/pub directory to mode 0777.
Configure the ftpd_anon_write Boolean to allow anonymous user writes.
Set the public_content_rw_t SELinux context type to the /var/ftp/pub directory.
If any additional tasks are required to get this done, take care of them.
