Re: [ansible-project] Passing IP address from one playbook to another playbook

2021-06-07 Thread Rajaniesh Kaushikk
playboook taking it from hosts: demo1 which is declared in the inventory file On Saturday, June 5, 2021 at 6:36:37 AM UTC-4 Rajaniesh Kaushikk wrote: > I tried doing it but it did not worked because imported playbook still > taking the ip address from inventory file. > > On Sat, Ju

Re: [ansible-project] Unable to run azure resource group creation playbook

2021-05-20 Thread Rajaniesh Kaushikk
ible.com/ansible/latest/scenario_guides/guide_azure.html > > On Thu, 20 May 2021 at 15:16, Rajaniesh Kaushikk > wrote: > >> Do you have correct instructions for working on ansible for azure >> workloads? >> >> On Thu, 20 May 2021 at 00:26, Dick Visser wrote: >> &g

Re: [ansible-project] Unable to run azure resource group creation playbook

2021-05-20 Thread Rajaniesh Kaushikk
> date, or you didn't follow them completely/accurately. > > Contact the author(s) of those instructions for questions about them. > > > > > > On Thu, 20 May 2021 at 02:56, Rajaniesh Kaushikk > wrote: > >> Hi, >> >> I tried running the azure

[ansible-project] Passing IP address from one playbook to another playbook

2021-06-04 Thread Rajaniesh Kaushikk
I have developed the playbook which created a vm in azure(playbook name is CreateAzureVM.yml) and I have another playbooks which Installs softwares on the VM(install_software.yml). I have imported install_software.yml in the CreateAzureVM.yml playbook. install_software.yml takes the host

Re: [ansible-project] Passing IP address from one playbook to another playbook

2021-06-05 Thread Rajaniesh Kaushikk
n 2021 at 05:55, Rajaniesh Kaushikk > wrote: > >> I have developed the playbook which created a vm in azure(playbook name >> is CreateAzureVM.yml) and I have another playbooks which Installs softwares >> on the VM(install_software.yml). >> >> I have imported ins

[ansible-project] How to pass variable to another playbook and from imported playbook to role used by it

2021-06-28 Thread Rajaniesh Kaushikk
Hi, I have two playbooks Playbook1 - name: Create Azure VM hosts: localhost - name: Include Delete IP address import_playbook: deleteIPaddress.yml Vars: ipaddress:"{{ipaddress}}" Now in this imported playbook deleteIPaddress.yml I am using role and I want to pass the IP address

[ansible-project] How to find the current VM where play is running

2021-06-28 Thread Rajaniesh Kaushikk
Hi, I want to automate the software deployment via ansible.Here is my problem where I need some help: When I run the playbook it goes through inventory to install software on a remote VM and update software config file on each VM. In the software config file I need to add the currently executing

[ansible-project] How to add task after importing the playbook

2021-06-28 Thread Rajaniesh Kaushikk
Hi, I want to add tasks after importing a playbook inside another playbook.' - name: Create Azure VM hosts: localhost - name: Creating a targetIPAddress.txt copy: dest: "/home/azureuser/dmptargetIPAddress.txt" content: | "{{ipaddressToSend}}" - name: Include

[ansible-project] Update the port of server.xml file in Tomcat via ansible

2021-06-28 Thread Rajaniesh Kaushikk
Hi, I am very new to Ansible and I need small help top update the p[ort number in the server.xml file in tomcat to change the port from 8080 to 8090 here is the server.xml (highlighted in bold) Server.xml-

[ansible-project] Ansible Docker command is not working

2021-06-28 Thread Rajaniesh Kaushikk
Hi, I am trying to run a service via ansible - name: Run airflow init shell: cmd: docker-compose up airflow-init chdir: /home/azureuser/airflow but it is throwing this error: fatal: [dmpServer]: FAILED! => {"changed": true, "cmd": "docker-compose up airflow-init", "delta":

[ansible-project] Unable to run azure resource group creation playbook

2021-05-19 Thread Rajaniesh Kaushikk
Hi, I tried running the azure resource group creation playbook by following these steps given in the MS site: https://docs.microsoft.com/en-us/azure/developer/ansible/install-on-linux-vm?tabs=ansible#file-credentials but it is throwing this error An exception occurred during task execution. To