You are on page 1of 1

Lab 1

● Create a playbook named install_service.yml that downloads and installs the


service defined in the variable service on the group "remote".
● Let the playbook be executed by the user ansible. After installation, it
displays a message so that the system admin can be assured that the
operation was OK.
● For the moment , disable facts collection.
● Add a task that creates a new user "mysql". The user password should be
"mysqlpasswd". It should be encrypted with vault. Set the file passwd to
"secure“
● check syntax errors and then run the playbook and visualize its output

You might also like