[ansible-project] Ansible Dynamic Inventory for Azure

2019-02-23 Thread ameya agashe
Hi Guys, I am trying to play around with Ansible dynamic inventory to get software installed/perform configuration management. I have executed instructions as given by Microsoft here: https://docs.microsoft.com/en-us/azure/ansible/ansible-manage-azure-dynamic-inventories Commands from my VM are

[ansible-project] Re: Ansible Failed Authentication

2019-02-23 Thread VeGeTa-X
also here is a copy are my settings of for ansible.cfg and version I am running ansible 2.7.8 config file = /etc/ansible/ansible.cfg configured module search path = ['/usr/share/ansible'] ansible python module location = /usr/local/lib/python3.6/site-packages/ansible executable

Re: [ansible-project] Ansible Failed Authentication

2019-02-23 Thread VeGeTa-X
ok fixed the username and password and I am still not able to login using the playbook Also to answer your question yes I am able to login using vegeta with just plain ssh into switch On Saturday, February 23, 2019 at 8:58:52 AM UTC-5, Wawrzek Niewodniczanski wrote: > > On Fri, 22 Feb 2019

Re: [ansible-project] Re: Using include_tasks with the same file several times inside a role

2019-02-23 Thread Kai Stian Olstad
On 23.02.2019 23:07, Paulo Silva wrote: > It was a typo, even like that only the first one is executed. You have only shown us part of your code, since it's not working you have error(s) in that code. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google

Re: [ansible-project] Re: Using include_tasks with the same file several times inside a role

2019-02-23 Thread Paulo Silva
It was a typo, even like that only the first one is executed. Regards A sábado, 23/02/2019, 15:22, BHARATHI DURAI RAJ escreveu: > Try this one > > - name: task with var1 > include_tasks: external.yaml > vars: > my_var: var1 > > - name: task with var2 > include_tasks: external.yaml >

[ansible-project] Re: How can i handle ADFS in between Ansible and ServiceNow Portal to Create, Update Snow tickets?

2019-02-23 Thread Nuno
Dear Ankit, Were you able to solve the problem? I am currently in a similar situation and I am still struggling to solve it. Thanks! sábado, 24 de Novembro de 2018 às 10:32:36 UTC, Ankit Vashistha escreveu: > > I was trying to using snow modules ( >

[ansible-project] Ansible, CyberArk, root and SSH

2019-02-23 Thread imanuel . greenfeld1
Hello We have Ansible in our organisation which deploys software across our Development servers. IT Security recently CyberArk'd each of the Development servers and now Ansible cannot log into each of the machines (not even as 'root'). When I try manually to SSH as 'root' with the

Re: [ansible-project] Use a variable from another host's variables

2019-02-23 Thread Kai Stian Olstad
On 23.02.2019 18:53, adsquai...@gmail.com wrote: > Hello all, > > I have an inventory file populated with two hosts and I would like to use > the value of host B's variable on host A. I had no luck with using hostvars > in the template. > > Example inventory file. Note this will be a dynamically

[ansible-project] Use a variable from another host's variables

2019-02-23 Thread adsquaired
Hello all, I have an inventory file populated with two hosts and I would like to use the value of host B's variable on host A. I had no luck with using hostvars in the template. Example inventory file. Note this will be a dynamically generated file. [host_a] x.x.x.x [host_a:vars]

[ansible-project] Re: Using include_tasks with the same file several times inside a role

2019-02-23 Thread BHARATHI DURAI RAJ
Try this one - name: task with var1 include_tasks: external.yaml vars: my_var: var1 - name: task with var2 include_tasks: external.yaml vars: my_var: var2 On Saturday, 23 February 2019 20:27:12 UTC+5:30, Paulo Silva wrote: > > Hi, > > Is it possible do to something like this

[ansible-project] Using include_tasks with the same file several times inside a role

2019-02-23 Thread Paulo Silva
Hi, Is it possible do to something like this inside a role? - name: task with var1 include_tasks: external.yaml vars: my_var=var1 - name task with var2 include_tasks: external.yaml vars: my_var=var2 I'm no getting any error but it appears that only the first include_tasks is

[ansible-project] Ansible Playbook

2019-02-23 Thread BHARATHI DURAI RAJ
Can you please help me on correcting the below playbook... - name: Delete Project uri: url: "https://dev.azure.com/{{ org }}/_apis/projects?api-version=4.1" method: DELETE user: "{{ vsts_user }}" password: "{{ pattoken }}" return_content: yes

[ansible-project] Dealing with non-fixed length lists of variables

2019-02-23 Thread Spencer Webb
Hi all, I've got a playbook that uses variables to create a load balanced pool and the required members on our test F5 BigIP. I've got the basics working without issue, however, the number of members of a pool for any given run is not a fixed number and could range from 1 up to say 10. I'm

Re: [ansible-project] Ansible Failed Authentication

2019-02-23 Thread Wawrzek Niewodniczanski
On Fri, 22 Feb 2019 at 21:56, VeGeTa-X wrote: > [...] > please let me know what I am missing? There might be something else, but these 3 lines look wrong, just one "}" should be two. > ssh: > host: “{{ansible_host}” > username: “{{vegeta}” > password: “{{abc123}” Also can