Below is the command to run Ansible Playbook:
ANSIBLE_SCP_IF_SSH=y ansible-playbook -v -i
/web/aes/admin/playbooks/PB_BAU/ccc_vel.hosts
/web/aes/admin/playbooks/PB_BAU/cccvel_restart.yml -e ENV=$SH_ENV -e
ACTION=$SH_ACTION --tags $3 -e instance_name=$Instance
Here is the playbook code:
- hosts
Ansible v2.11.x
I did all the following via Ansible.
Sadly I don't think there are Windows-equivalent postgres modules. So for
windows, I've installed the PostgreSQL binaries
from https://www.enterprisedb.com/download-postgresql-binaries, and on
initial setup, set up access for user "postgres"
Can you ssh to the host with the creds you're providing Ansible?
On Sunday, August 15, 2021 at 12:20:06 PM UTC-4 mohta...@gmail.com wrote:
> Below is the command to run Ansible Playbook:
>
> ANSIBLE_SCP_IF_SSH=y ansible-playbook -v -i
> /web/aes/admin/playbooks/PB_BAU/ccc_vel.hosts
> /web/aes/a
Yes, I also mentioned that the ansible command module also gets triggered
on remote host. I m just concerned about the error message as it fails the
playbook.
On Monday, August 16, 2021 at 12:22:48 AM UTC+5:30 zil...@gmail.com wrote:
> Can you ssh to the host with the creds you're providing Ans
I need to get the hostname as a variable in my playbook
I have the inventory defined the inventory like below
[group1]
host1.vs.com type=secondary servertype=vm
host2.vs.com type=primary servertype=vm
[group2]
host4.vs.com type=primary servertype=physical
host3.vs.com type=secondary servertype=p
HI Saranya,
If i didn't misunderstood, would you like to make use of inbuilt special
variables to get hostname as - inventory_hostname, inventory_hostname_short
which directly gives you hostname value and it can be stored in variable or
printed using debug module.
PS :- You can also make use of f
H ello,
I did look at magic variables and i was not able to get what i wanted...
i basically want to get hostname which is of type secondary from group1 ...
so that i can store it in a var and use elsewhere...
On Monday, August 16, 2021 at 10:36:52 AM UTC+5:30 parthpat...@gmail.com
wrote:
> HI
I know i can use inventory_hostname but based on condition I want to get
that i.,e type secondary from group1
On Monday, August 16, 2021 at 11:00:02 AM UTC+5:30 Saranya N wrote:
> H ello,
>
> I did look at magic variables and i was not able to get what i wanted...
> i basically want to get host
iterating over hostvars data looks like a bug reported by few of them
(found articles). tried but not able to iterate over hostvars using loop or
with_items.
[image: image.png]
[image: image.png]
[image: image.png]
On Mon, Aug 16, 2021 at 11:01 AM Saranya N wrote:
> I know i can use inventory_ho
https://gitmemory.com/issue/ansible/ansible/68364/683214528
https://github.com/ansible/ansible/issues/68364
On Mon, Aug 16, 2021 at 11:57 AM Parth Patel
wrote:
> iterating over hostvars data looks like a bug reported by few of them
> (found articles). tried but not able to iterate over hostvars
10 matches
Mail list logo