Based on these examples, add to the initial playbook the following tasks:
File transfer with the module copy Create a new directory with the module file Delete a whole directory and files (module file) Install a list of packages with yum
File transfer with the module copy
copy
Create a new directory with the module file
file
Delete a whole directory and files (module file)
Install a list of packages with yum
yum