Boa tarde!!!
Já vi e revi meu provisioning.yml, destrui as máquinas, subi novamente e o erro persisti. Então copiei o código do instrutor e apresentou o mesmo erro. Segue a mensagem do erro:
TASK [Cria o banco do MySQL] * fatal: [172.17.177.42]: FAILED! => {"changed": false, "msg": "unable to find /home/vagrant/.my.cnf. Exception message: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")"}
Onde estou comendo bola?
Retornei a aula 6 antes de colocar as informacoes em variaveis, e mesmo copiando o codigo do instrutor estou com problemas na criacao do usuario no MySQL. TASK [Cria o usuário do MySQL] **** [WARNING]: Skipping plugin (/usr/lib/python3/dist-packages/ansible/plugins/filter/core.py) as it seems to be invalid: cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/local/lib/python3.9/dist-packages/jinja2/filters.py) [WARNING]: Skipping plugin (/usr/lib/python3/dist-packages/ansible/plugins/filter/mathstuff.py) as it seems to be invalid: cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/local/lib/python3.9/dist-packages/jinja2/filters.py) failed: [172.17.177.42] (item=localhost) => {"ansible_loop_var": "item", "changed": false, "item": "localhost", "msg": "Unsupported parameters for (mysql_user) module: hosts Supported parameters include: append_privs, ca_cert, check_hostname, check_implicit_admin, client_cert, client_key, config_file, connect_timeout, encrypted, host, host_all, login_host, login_password, login_port, login_unix_socket, login_user, password, plugin, plugin_auth_string, plugin_hash_string, priv, resource_limits, sql_log_bin, state, tls_requires, update_password, user"} failed: [172.17.177.42] (item=127.0.0.1) => {"ansible_loop_var": "item", "changed": false, "item": "127.0.0.1", "msg": "Unsupported parameters for (mysql_user) module: hosts Supported parameters include: append_privs, ca_cert, check_hostname, check_implicit_admin, client_cert, client_key, config_file, connect_timeout, encrypted, host, host_all, login_host, login_password, login_port, login_unix_socket, login_user, password, plugin, plugin_auth_string, plugin_hash_string, priv, resource_limits, sql_log_bin, state, tls_requires, update_password, user"} failed: [172.17.177.42] (item=172.17.177.40) => {"ansible_loop_var": "item", "changed": false, "item": "172.17.177.40", "msg": "Unsupported parameters for (mysql_user) module: hosts Supported parameters include: append_privs, ca_cert, check_hostname, check_implicit_admin, client_cert, client_key, config_file, connect_timeout, encrypted, host, host_all, login_host, login_password, login_port, login_unix_socket, login_user, password, plugin, plugin_auth_string, plugin_hash_string, priv, resource_limits, sql_log_bin, state, tls_requires, update_password, user"}