The playbook installs a service defined in a variable on remote hosts as the user ansible, displays a confirmation message, creates a vault-encrypted mysql user with password mysqlpasswd, and checks for syntax errors before running and viewing the output of the playbook.
The playbook installs a service defined in a variable on remote hosts as the user ansible, displays a confirmation message, creates a vault-encrypted mysql user with password mysqlpasswd, and checks for syntax errors before running and viewing the output of the playbook.
The playbook installs a service defined in a variable on remote hosts as the user ansible, displays a confirmation message, creates a vault-encrypted mysql user with password mysqlpasswd, and checks for syntax errors before running and viewing the output of the playbook.
● 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