KodeKloud Project

Hi All,

I am trying to deploy a LAMP stack using Ansible to 2 targets
So I have 3 instances on Google Cloud:
ansible-controller 10.140.0.5
ansible-target1 10.140.0.6
ansible-target2 10.140.0.7

I get an error when I try to connect to the database.

Error: https://paste.ubuntu.com/p/cM3vr8cz3P/

I installed the below on the controller:

ansible-galaxy collection install community.mysql

Here is the playbook for the DB server ansible-target2: ecommapp-db.yml

https://paste.ubuntu.com/p/CxYHmZ3kpF/

Here is the playbook for the web server ansible-target1: ecommapp-web.yml

https://paste.ubuntu.com/p/j6hcCYNK8F/

Please help me set this up. KodeKloud did not respond so far.

Also plz tell me how to set the mariadb root password before connecting.

Many thanks…

Please help!!!