Re: [ansible-project] mso_schema_site_anp_epg_domain module issue?

2020-06-01 Thread Albert Short
FFS, ~@**%% should have checked that. you go a bit script blind from looking at it too long. Thanks Regards Albert Short On Tue, 2 Jun 2020 at 07:52, Ompragash wrote: > Hi Albert, > > The module which you're trying to use was added in Ansible v2.9 and you > current Ansible version is V2.8

Re: [ansible-project] mso_schema_site_anp_epg_domain module issue?

2020-06-01 Thread Ompragash
Hi Albert, The module which you're trying to use was added in Ansible v2.9 and you current Ansible version is V2.8 which is why it's failing. So you can try upgrading Ansible to the latest version and re-run the playbook. Regards, Ompragash On Tue, Jun 2, 2020, 11:14 Albert Short wrote: >

Re: [ansible-project] mso_schema_site_anp_epg_domain module issue?

2020-06-01 Thread Albert Short
Thomas, yes this is the whole playbook. I have watered it down & tested it as is in the playbooked copied to try & use a process of elimination. The deploy tasks work, as they are part of the bigger play, which deploys successfully as I have been building. I therefore assume it is related to the

Re: [ansible-project] src module not working as mentioned/expected.

2020-06-01 Thread SUNU .........
Its here. https://docs.ansible.com/ansible/latest/modules/k8s_module.html On Tuesday, June 2, 2020 at 1:47:13 AM UTC+5:30, Vladimir Botka wrote: > > On Mon, 1 Jun 2020 13:05:18 -0700 (PDT) > "SUNU ." > wrote: > > > As per the definition src module > > There is no src module. >

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Dick Visser
There is no copy task in your playbook. There is a template task, which is meant for... templating files. https://docs.ansible.com/ansible/latest/modules/template_module.html Have a look at the copy module: https://docs.ansible.com/ansible/latest/modules/copy_module.html On Tue, 2 Jun 2020 at

[ansible-project] Molecule Testing for multiple roles

2020-06-01 Thread JDM
Hi Guys, Has anyone tried testing multiple ansible roles together. Best Regards, Jagdish -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ansible-project] Re: ec2 instance launch failing with error subnet id does not exit

2020-06-01 Thread Sanjay Chakraborty
That helped. Also needed correct modules. Thanks. Sanjay On Mon, Jun 1, 2020 at 8:43 PM Neha Pithadiya wrote: > Hi > > I think vpc_subnet_id value looks like as:- > > vpc_subnet_id: subnet-29e63245 > > Check the link below:- > https://docs.ansible.com/ansible/latest/modules/ec2_module.html > >

[ansible-project] Re: ec2 instance launch failing with error subnet id does not exit

2020-06-01 Thread Neha Pithadiya
Hi I think vpc_subnet_id value looks like as:- vpc_subnet_id: subnet-29e63245 Check the link below:- https://docs.ansible.com/ansible/latest/modules/ec2_module.html Thanks Neha On Tuesday, June 2, 2020 at 6:24:16 AM UTC+5:30, Sanjay Chakraborty wrote: > > Hi there, > Can anyone please let

[ansible-project] ec2 instance launch failing with error subnet id does not exit

2020-06-01 Thread Sanjay Chakraborty
Hi there, Can anyone please let me know what should be the correct syntax for defining vpc subnet id ? This is my playbook: --- - name: A play to launch ec2 instance hosts: localhost connection: local gather_facts: false vars: - proto: tcp ports: - 22 cidr_ip:

[ansible-project] Re: Localhost unreachable on Windows Subsystem for Linux (WSL2, Ubuntu) (Git Issue #: 69765)

2020-06-01 Thread Jordan Borean
With the further details exposed by -vvv we can see the error message when it tried to create the temp folder sleep: cannot read realtime clock > A quick google search brings up an issue on the WSL repo about this problem https://github.com/microsoft/WSL/issues/4898. Looks like there are some

[ansible-project] Localhost unreachable on Windows Subsystem for Linux (WSL2, Ubuntu) (Git Issue #: 69765)

2020-06-01 Thread Leo
Hi everyone, I opened an issue at Github project but unfortunately got closed unexpectedly. I still believe the there are some compatibility problems between Ansible and WSL, because the scenario I described in the issue worked fine on local

Re: [ansible-project] Setting Variable across multiple hosts blocks

2020-06-01 Thread Andrew Morgan
Thank you for all your assistance! :) On Monday, 1 June 2020 17:16:24 UTC-4, James Cassell wrote: > > > On Mon, Jun 1, 2020, at 11:49 AM, Brian Coca wrote: > > The 'implicit localhost' is not part of ALL: > > > https://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html > > >

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Tony Wong
ok got it fixed but now its having issues on next copying task TASK [Creating a Working Directory] * task path:

Re: [ansible-project] mso_schema_site_anp_epg_domain module issue?

2020-06-01 Thread Thomas Renzy
Hi Albert, Is this the full playbook? Is the error that was being reported the first task on the playbook you copied? Thanks, Thomas On Mon, Jun 1, 2020 at 8:01 AM Albert Short wrote: > Hello all, > > I have tried using the* mso_schema_site_anp_epg_domai*n module today with > the code

Re: [ansible-project] Setting Variable across multiple hosts blocks

2020-06-01 Thread James Cassell
On Mon, Jun 1, 2020, at 11:49 AM, Brian Coca wrote: > The 'implicit localhost' is not part of ALL: > https://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html > Documentation gold! Thanks! V/r, James Cassell -- You received this message because you are subscribed to the

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Dick Visser
As you can see you ran into another privilege escalation issue. Since this is an important topic, rather than going down the trial and error path further, you are probably better of by reading the docs on privilege escalation: https://docs.ansible.com/ansible/latest/user_guide/become.html and try

Re: [ansible-project] PHPIPAM

2020-06-01 Thread Dick Visser
Ansible is an automation tool. It can automate whatever you are currently doing manually. So the question is: how are you currently "retrieving the subnet/ipaddress details"? On Mon, 1 Jun 2020 at 10:30, Naresh Kasula wrote: > > Hi Team, > > I have installed PHPIPAM on linux centos server now

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Tony Wong
thanks now i get this TASK [Creating a Directory to mount the iso file] *** task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:6 <127.0.0.1> ESTABLISH

Re: [ansible-project] src module not working as mentioned/expected.

2020-06-01 Thread Vladimir Botka
On Mon, 1 Jun 2020 13:05:18 -0700 (PDT) "SUNU ." wrote: > As per the definition src module There is no src module. https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html -- Vladimir Botka -- You received this message because you are subscribed to the Google Groups

[ansible-project] src module not working as mentioned/expected.

2020-06-01 Thread SUNU .........
As per the definition src module will deploy the local file, but it doesn't do the same and getting file not available/file reallt exist ? exception. Instead lookup and templates have to be used. Please remove src from the documentation. -- You received this message because you are subscribed

[ansible-project] Re: Which module can I use to run command on command prompt on all my hosts ?

2020-06-01 Thread Work-Hard
Thank you for explaining. It is very helpful! Cheers, On Monday, June 1, 2020 at 11:58:15 AM UTC-7, Nick Schendel wrote: > > Since you mentioned gpupdate, then I assumed windows. Ultimately the best > place to look to figure out what you can use is to search the all module > index: > >

[ansible-project] Re: Which module can I use to run command on command prompt on all my hosts ?

2020-06-01 Thread Nick Schendel
Since you mentioned gpupdate, then I assumed windows. Ultimately the best place to look to figure out what you can use is to search the all module index: https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html most, if not all of the windows stuff has win_ -- You received

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Ompragash
As you can see "IOError: [Errno 13] *Permission denied*: '/etc/fstab'", you're executing the playbook with an unprivileged user. Try running the playbook with privileged user or use *become *directive for TASK [Mount vCSA6.7 iso to /mnt/iso directory]. - Ompragash On Tue, 2 Jun 2020 at 00:12,

[ansible-project] Re: Which module can I use to run command on command prompt on all my hosts ?

2020-06-01 Thread Nick Schendel
https://docs.ansible.com/ansible/latest/modules/win_command_module.html#win-command-module On Monday, June 1, 2020 at 1:45:21 PM UTC-5, Work-Hard wrote: > > Hi, > Which module can I use as a task to run a command on the command prompt on > all my hosts? > > example - > > cmd: gpupdate/force > >

[ansible-project] Which module can I use to run command on command prompt on all my hosts ?

2020-06-01 Thread Work-Hard
Hi, Which module can I use as a task to run a command on the command prompt on all my hosts? example - cmd: gpupdate/force Thanks, -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] An exception occurred during task execution.

2020-06-01 Thread Tony Wong
I am trying to deploy new vmware vcsa appliance from iso usibg ansible below is playbook --- - hosts: localhost vars: name_iso: VMware-VCSA-all-6.7.0-16046470.iso tasks: - name: Creating a Directory to mount the iso file become: yes file: path: /mnt/iso

Re: [ansible-project] Where is the source of the alternatives module

2020-06-01 Thread Brian Coca
yes, to https://github.com/ansible-collections/community.general -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ansible-project] partial dictionary merge available?

2020-06-01 Thread Toni Mueller
Hi Racke, On Mon, Jun 01, 2020 at 06:05:03PM +0200, Stefan Hornburg (Racke) wrote: > Where does that inventory come from? Maybe you could use a dynamic inventory? so far, it's a static inventory. It will be a dynamic inventory once this stuff is a bit more fleshed out - but the "cost" to have

Re: [ansible-project] partial dictionary merge available?

2020-06-01 Thread Stefan Hornburg (Racke)
On 6/1/20 5:58 PM, Toni Mueller wrote: > > Hi, > > I've just read that there is a way to merge dictionaries, to accumulate > values across the variable hierarchy, but it is supposed to be a very > bad idea. Would it be difficult to allow this merge feature on just a > select number of variables?

Re: [ansible-project] How to efficiently 'delegate_to'?

2020-06-01 Thread Stefan Hornburg (Racke)
On 6/1/20 5:49 PM, Toni Mueller wrote: > > Hi, > > in a project to provision stuff, I would like to set a lot of variables > on a host, which I want to use in a playbook, but take the values for > that variable from the host I am delegating to. Ie, in my inventory, I > have > > > host2

[ansible-project] partial dictionary merge available?

2020-06-01 Thread Toni Mueller
Hi, I've just read that there is a way to merge dictionaries, to accumulate values across the variable hierarchy, but it is supposed to be a very bad idea. Would it be difficult to allow this merge feature on just a select number of variables? Or is there a better way to deal with a large

Re: [ansible-project] Making an unsafe variable safe

2020-06-01 Thread Brian Coca
No, not really. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this

Re: [ansible-project] Setting Variable across multiple hosts blocks

2020-06-01 Thread Brian Coca
The 'implicit localhost' is not part of ALL: https://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] How to efficiently 'delegate_to'?

2020-06-01 Thread Toni Mueller
Hi, in a project to provision stuff, I would like to set a lot of variables on a host, which I want to use in a playbook, but take the values for that variable from the host I am delegating to. Ie, in my inventory, I have host2 delegate_to=host1 host3 delegate_to=host1 host4

Re: [ansible-project] Setting Variable across multiple hosts blocks

2020-06-01 Thread Brian Coca
The 'implicit localhost' is not part of ALL On Sun, May 31, 2020 at 8:05 PM Andrew Morgan wrote: > > Thank you for the reply.. I thought if I set host all at the top and then set > the facts for host all it would work. I guess I would have to have localhost > in my inventory file correct? > >

Re: [ansible-project] How to copy directory recursively using pattern to remote machine?

2020-06-01 Thread Brian Coca
you are not passing a 'glob' to fileglob, in any case the problem is that it is returning an empty list, examine it in a debug statement until you get the output you expect. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] mso_schema_site_anp_epg_domain module issue?

2020-06-01 Thread Albert Short
Hello all, I have tried using the* mso_schema_site_anp_epg_domai*n module today with the code syntax below but keep getting the following error message. Any ideas on what the issues? Or has someone else seen this before? # ansible-playbook test_mso.yml -vvv ansible-playbook 2.8.6 config file

Re: [ansible-project] How to copy directory recursively using pattern to remote machine?

2020-06-01 Thread Ankit Vashistha
Hi Stefan, Thanks for your comment, i am getting the same issue even after putting that in double quotes. *Regards,* *Ankit* On Mon, Jun 1, 2020 at 5:30 PM Stefan Hornburg (Racke) wrote: > On 6/1/20 1:49 PM, Ankit wrote: > > Hello All, > > > > I have got the following playbooks where i am

Re: [ansible-project] How to copy directory recursively using pattern to remote machine?

2020-06-01 Thread Stefan Hornburg (Racke)
On 6/1/20 1:49 PM, Ankit wrote: > Hello All, > > I have got the following playbooks where i am trying to copy directories and > all its contents recursively which is > present in project repo. For identifying the correct directory, i am using a > variable which holds the pattern value. For >

[ansible-project] How to copy directory recursively using pattern to remote machine?

2020-06-01 Thread Ankit
Hello All, I have got the following playbooks where i am trying to copy directories and all its contents recursively which is present in project repo. For identifying the correct directory, i am using a variable which holds the pattern value. For some reason, the task is skipped and the full

[ansible-project] PHPIPAM

2020-06-01 Thread Naresh Kasula
Hi Team, I have installed PHPIPAM on linux centos server now want retrieve the subnet/ipaddress details using Ansible scripts. Can someone please guide to get the details. PHPIPAM is basically IPAddress management tool. Regards, Naresh K -- You received this message because you are