Thanks Dick for the response. I understood that ec2.py can't be executed in
that way.
However, i have resolved my "Profile Not Found" issue by using ec2_instance
module after upgrading ansible from 2.4 to 2.9.
Thanks Ravi for your help.
On Friday, 15 November 2019 12:02:06 UTC+5:30, Dick Visser
Hi
I'm using the ec2.py dynamic inventory, and this appears to work well.
My deployment consists of several different distros, and so the
ansible_user is different across the instances.
While instantiating from different AMI, I am adding a "Username" tag
to the instances.
I then include a second i
On Tue, 19 Nov 2019 at 14:45, Dick Visser wrote:
> [tag_Username_admin:centos]
> ansible_user=centos
This last entry should of course read:
[tag_Username_centos:vars]
ansible_user=centos
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
I had a look at the ec2.py code and I was able to add this as a feature:
https://github.com/ansible/ansible/pull/65070
thx!!
On Tue, 19 Nov 2019 at 15:01, Dick Visser wrote:
>
> On Tue, 19 Nov 2019 at 14:45, Dick Visser wrote:
>
> > [tag_Username_admin:centos]
> > ansible_user=centos
>
> This
This is one of AWS' stranger choices, having different default usernames on
different distros of the same operating system. Imagine if you got
"Administrator" on Windows 7, "Admin" on Windows 8, and "Root" on
Windows10...
I can't help you with the vars, but here are some oter ideas:
If you bake y
I'm creating a script that dynamically generates a response file for an
uninstall and stores the response file in a var for reuse in the uninstall
command. My play :
=
- name: UnInstall Oracle
hosts: localhost
tags: oracle
become: yes
become_m
On Tue, 19 Nov 2019 10:50:04 -0800 (PST)
Michael wrote:
> - name: Uninstall old oracle client
> command: /bin/sh -c "/opt/oracle/product/12.1.0/deinstall/deinstall
> -silent -paramfile {{ respfile }}"
> [...]
> "respfile": [
> "/tmp/deinstall2019-11-19_11-29-40AM/response/deinstall_Ora
I think the issue is your respfile fact contains a list, not a string,
hence the [ ] in the Debug output.
There are a couple of ways to fix that. You can either do it when you are
creating the fact (use the 'first' filter to just get the first element of
the list), like this.
- name: Set R
I don't think there's a proper way, ultimately its whatever works for you.
I do actually have 1 playbook per cluster type, but I have quite 'tall'
software stacks (lots of steps to configure each cluster) and then I use
external tools such as jenkins or gnu parallels to run multiple playbooks
si
There is a write-up of accessing windows hosts via a bastion here:
https://www.bloggingforlogging.com/2018/10/14/windows-host-through-ssh-bastion-on-ansible/
Hope this helps.
Jon
On Monday, November 18, 2019 at 2:08:27 PM UTC, pratik ghodekar wrote:
>
> Hello,
> I wanted to know if we have Wind
Hi ,
I have a file :
cat test.txt
Baseline: ABC ABC1 ABC23 ABC24 +ABC33 ABC_PAD +ABC_PAD_CAD
Now i want to add +TEST_ABC at the end of Line :
Desired O/P :
Baseline: ABC ABC1 ABC23 ABC24 +ABC33 ABC_PAD +ABC_PAD_CAD +TEST_ABC
I am using lineinfile module but the string is getting added after
Amazing. These solutions worked! Thank you!!
On Tuesday, November 19, 2019 at 3:35:17 PM UTC-5, J Hawkesworth wrote:
>
> I think the issue is your respfile fact contains a list, not a string,
> hence the [ ] in the Debug output.
>
> There are a couple of ways to fix that. You can either do it w
The below is the solution
vlan_id_l2 : ['30', '100']
- name: configure the line based on desired condition (Layer 2)
ios_config:
lines:
- *
- *
- *
parents: "interface {{ item.key }}"
when: item.value.data.vlan
13 matches
Mail list logo