KodeKloud Project

47 views
Skip to first unread message

Melvin C Varghese

unread,
Sep 18, 2020, 1:36:30 AM9/18/20
to Ansible 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... 

Melvin C Varghese

unread,
Sep 20, 2020, 1:04:41 AM9/20/20
to Ansible Project
Please help!!!
Reply all
Reply to author
Forward
0 new messages