[ansible-project] Re: "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result

2019-08-09 Thread Morteza khaleghi
Hi Did you solve the problem? I have the same problem. Thank you. On Tuesday, March 13, 2018 at 7:06:46 AM UTC+3:30, Camilo Vieira wrote: > > Hi, > > This is my environment: > > # lsb_release -a > No LSB modules are available. > Distributor ID: Ubuntu > Description:Ubuntu 16.04.2 LTS >

[ansible-project] Help with playbook

2019-08-09 Thread Andrew Meyer
I am trying to install FreeRADIUS from the networkradius repo in my playbook and I seem to be running into a few issues. I don't understand why i'm getting the error on the handler trigger 2. Also the yum_repos role doesn't seem to be installing the repo on the server i'm running the playbook

Re: [ansible-project] loop vs with_items and union(query('vars', item))

2019-08-09 Thread Bob Tanner
Wow, how embarrassing! Thank you! > On Aug 9, 2019, at 7:39 PM, Kai Stian Olstad > wrote: > > loop is indented to much, remove 2 spaces so it align on the same level as > debug. -- Bob Tanner Clash of Clan Tag: #LUJ2CPU Follow me on Facebook and Twitter <

Re: [ansible-project] Ansible - Responding to prompts

2019-08-09 Thread Michael
Hi Olstad, I have been able to setup python3 using anaconda on my control and remote hosts so that i can utilize the pexpect>3.3 which is a requirement for using the Ansible expect module. So this is what I have come up with: - name: Installing Products expect: echo: yes c

Re: [ansible-project] loop vs with_items and union(query('vars', item))

2019-08-09 Thread Kai Stian Olstad
On 09.08.2019 21:25, Bob Tanner wrote: > Trying to switch from with_items to loops and having problems. Similar to > the problem I posted about > at https://groups.google.com/d/msg/ansible-project/UTXDN4pztvM/EGppDy1CAwAJ > > I do not understand why item is undefined in the in the loop task. > >

Re: [ansible-project] Problem when I try to migrate ansible-inventory to awx

2019-08-09 Thread Kai Stian Olstad
On 09.08.2019 16:26, Arturo Ibáñez González wrote: > Hi guys , > > When I try to import my ansible-inventory and put in AWX with this command: > > sudo -u awx /opt/awx/bin/awx-manage inventory_import --source=/etc/ansible/ > inventory/production/hosts --inventory-name=production AWX has it's one

Re: [ansible-project] Show output of shell tasks as they occur

2019-08-09 Thread Kai Stian Olstad
On 09.08.2019 15:22, Angel Rengifo Cancino wrote: > Hello guys: > > Not sure whether this is possible or not, but here's my question. I'm > running tasks with Ansible by using command or shell module. I am able to > see the output of such commands by registering stdout to a variable and > later sh

Re: [ansible-project] galaxy fails to install role due to incompatible version formats

2019-08-09 Thread nusenu
it is strange to force people to remove past tags but thanks for the help! -- https://twitter.com/nusenu_ https://mastodon.social/@nusenu -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving ema

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-09 Thread Jordan Borean
No you are not, the jinja2 block is evaluated before it’s passed to the module so the data will contain the array you are looking for. Did you try it out? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and sto

Re: [ansible-project] Re: Ansible and Azure

2019-08-09 Thread Michael Mullay
Hi Steve, Not sure if this is what you are asking, but if you just need to find VMs in Azure by tag, you can do so using az cli like: $ az resource list --tag KEY=VALUE --query [].name I find the API returns resources much faster when using tags. On Fri, Aug 9, 2019 at 7:52 AM Steve Townsend w

Re: [ansible-project] galaxy fails to install role due to incompatible version formats

2019-08-09 Thread Matt Martz
The problem is that you have a mix of tag formats. Specifically those that start with `v` and those that do not. The tags causing issues are: 0.2.0-rc, 0.1.0-alpha In python3, the version parsing tools that Ansible uses will not allow you to compare a string to an integer, and you get this error.

[ansible-project] loop vs with_items and union(query('vars', item))

2019-08-09 Thread Bob Tanner
Trying to switch from with_items to loops and having problems. Similar to the problem I posted about at https://groups.google.com/d/msg/ansible-project/UTXDN4pztvM/EGppDy1CAwAJ I do not understand why item is undefined in the in the loop task. Simple task list - debug: msg: "X hostvars

[ansible-project] galaxy fails to install role due to incompatible version formats

2019-08-09 Thread nusenu
A user reported the following issue: downloading role 'relayor', owned by nusenu [WARNING]: - nusenu.relayor was NOT installed successfully: Unable to compare role versions (v18.1.1, 0.1.0, v18.0.0, v0.3.0, v19.1.4, v19.1.0, v19.1.3, 0.2.0-rc, 0.1.0-alpha, v0.3.1, v0.3.3, v0.2.1, v19.1.2, v19.0.0

[ansible-project] Netbox Ip address Ansible Module Question

2019-08-09 Thread Abhilash Reddy Ch
Hello I am trying to create Netbox Devices using Ansible Netbox Modules . I am running into an issue making an IP address Primary for the Device created by assigning facter facts. Here is the code To create an IP - name: Create IP address within Netbox with Primary IP netbox_ip_address

[ansible-project] "Undefined variable" error when ansible-playbook is executed from Robot Framework

2019-08-09 Thread Bash G
Hi, I have following playbook, called test.yaml. --- - name: Show bridge port hosts: "{{ target }}" gather_facts: no connection: local tasks: - name: Show bridge port asa_command: commands: - show bridge name test-br port {{bridge1Port3}} provider

[ansible-project] Re: Force ansible remote directory to /tmp

2019-08-09 Thread Rich Rauenzahn
On Wednesday, August 7, 2019 at 4:32:08 PM UTC-7, Rich Rauenzahn wrote: > > My ansible runs really slowly, I've looked at various things, and one > thing I haven't eliminated yet is that ansible runs in my NFS directory as > it ssh'es around. I've run ansible before and its performance is fine

[ansible-project] Using the magic variable groups

2019-08-09 Thread Harrymosco
Can I use a variable to insert inventory group when using groups; e.g. groups['$groupname']? -- 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

[ansible-project] Re: Ansible and Azure

2019-08-09 Thread Steve Townsend
Another update from me. I've managed to find out that there is a plugin called Azure Resource Manager inventory plugin. I've created the simple yaml file and now just seeing if I can get it to work. If anybody knows how I can use it to grab VMs from Azure based on tags, I'd love to hear it. St

[ansible-project] Problem when I try to migrate ansible-inventory to awx

2019-08-09 Thread Arturo Ibáñez González
Hi guys , When I try to import my ansible-inventory and put in AWX with this command: sudo -u awx /opt/awx/bin/awx-manage inventory_import --source=/etc/ansible/ inventory/production/hosts --inventory-name=production I had this output with this error : 8.777 INFO Updating inventory 4: p

Re: [ansible-project] Modules in languages other than Python?

2019-08-09 Thread Matt Martz
We do have a few examples: Go: https://github.com/ansible/ansible/blob/devel/test/integration/targets/binary_modules/library/helloworld.go shell: https://github.com/ansible/ansible/blob/devel/test/integration/targets/old_style_modules_posix/library/helloworld.sh WANT_JSON (although implemented in

[ansible-project] Re: Ansible and Azure

2019-08-09 Thread Steve Townsend
Hi All, As an update, I've figured out that Ansible does indeed work with just az login, the thing that doesn't is the azure_rm.py script we use for dynamic inventory. Does anybody have a solution for this? Steve On Friday, 9 August 2019 14:52:36 UTC+1, Steve Townsend wrote: > > Hi All, >

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-09 Thread 'Richard Payne' via Ansible Project
On Thursday, 8 August 2019 09:55:58 UTC+1, Kai Stian Olstad wrote: > > On 08.08.2019 10:50, 'Richard Payne' via Ansible Project wrote: > > Hi Kai > > > > This: > > Port: {{ range(43000,43200) | list }} > > > > produces: > > ERROR! Syntax Error while loading YAML. > >found unacceptable

Re: [ansible-project] Ansible vs. multiple Azure subscriptions

2019-08-09 Thread Steve Townsend
I'd love to hear more about this. Are you saying that you're able to authenticate and run playbooks to Azure just by using your az login session? No Service principle at all? On Tuesday, 19 February 2019 11:08:29 UTC, ameya agashe wrote: > > Not sure how you deal but for me Azure CLI az login wo

[ansible-project] Ansible and Azure

2019-08-09 Thread Steve Townsend
Hi All, Thank you for taking a look at my post. I'm trying to figure out if there is a better way to have Ansible authenticate with Azure when running playbooks. Right now, I've got a service principle set in my .azure/credentials section which works fine, but introduces security concerns. T

Re: [ansible-project] Re: Variable is Undefined error

2019-08-09 Thread Angel Rengifo Cancino
As I see, you're trying to use variables from one host or group of hosts (cmsserver) from another different group (jobserver). Those variables have a name in common but they're still different; you can't use reference them as if they were the same. But I believe this post might help you: https

[ansible-project] Ansible with network equipment (Comware 5 switch)

2019-08-09 Thread Ugo Bellavance
Hi, I'm new to Ansible. I wanted to manage my network devices with Ansible so I did this: - Found this documentation: http://patg.net/ansible,comware,switches/2014/10/16/ansible-comware/ - Created an account on my switch, tested that it can login via SSH (password only, haven't co

Re: [ansible-project] Background process exits when pipeling is set to false

2019-08-09 Thread Johncy Joseph
thanks Brian On Wed, Aug 7, 2019 at 3:45 PM Brian Coca wrote: > pipelining kept the ssh connection open, normally tasks will > open/execute/close the connection, which includes tty. Most 'services' > should detach correctly, but many don't, this seems to be your case. > > #1 i would make these i

Re: [ansible-project] Re: Variable is Undefined error

2019-08-09 Thread nandha kumar
Hello Angel,Dick, Below is my playbook: *** --- - hosts: all gather_facts: False roles: - pagefile - name: STOP_Services_CMS hosts: cmsserver gather_facts: False tasks: - name: Get services for Datase

[ansible-project] Show output of shell tasks as they occur

2019-08-09 Thread Angel Rengifo Cancino
Hello guys: Not sure whether this is possible or not, but here's my question. I'm running tasks with Ansible by using command or shell module. I am able to see the output of such commands by registering stdout to a variable and later showing it with debug module, but I must wait for the shell

[ansible-project] Re: Ansible and Comware 5 ?

2019-08-09 Thread Ugo Bellavance
On Monday, June 24, 2019 at 5:34:42 AM UTC-4, Olivier wrote: > > Hi all, > > I'm looking for feedback on Ansible and Comwar 5 for Network Automation > (gathers facts, creation, modification, and deletion of vlans, modify ports > :assign them to vlans and set other characteristics such as link-

[ansible-project] Re: Variable is Undefined error

2019-08-09 Thread Angel Rengifo Cancino
Hi: El viernes, 9 de agosto de 2019, 7:49:13 (UTC-5), nandha kumar escribió: > > Hello Team, > > I am trying to use the variable in the following task which i registered > in the previous task. > However, i am getting "variable is undefined error" > Could you please suggest us,what could be the r

Re: [ansible-project] Variable is Undefined error

2019-08-09 Thread nandha kumar
Do you want me to post the playbook Dick? Thanks, Nandhakumar On Fri, Aug 9, 2019 at 6:23 PM Dick Visser wrote: > Hi > > Could you please tell clearly: > > What the relevant tasks/playbooks/code/variables look like > > > On Fri, 9 Aug 2019 at 14:49, nandha kumar wrote: > > > > Hello Team, > >

Re: [ansible-project] Variable is Undefined error

2019-08-09 Thread Dick Visser
Hi Could you please tell clearly: What the relevant tasks/playbooks/code/variables look like On Fri, 9 Aug 2019 at 14:49, nandha kumar wrote: > > Hello Team, > > I am trying to use the variable in the following task which i registered in > the previous task. > However, i am getting "variable

[ansible-project] Variable is Undefined error

2019-08-09 Thread nandha kumar
Hello Team, I am trying to use the variable in the following task which i registered in the previous task. However, i am getting "variable is undefined error" Could you please suggest us,what could be the reason Thanks, Nandhakumar -- You received this message because you are subscribed to the

Re: [ansible-project] Re: Changing Registry key owner in Ansible

2019-08-09 Thread Yuval Zaltz
unless you take ownership on the key you can't chnge the permission בתאריך יום ו׳, 9 באוג׳ 2019, 11:33, מאת Yuval Zaltz ‏: > I Default permission for the local admin for the key is't full and unless > admins take ownership on the key > > בתאריך יום ד׳, 7 באוג׳ 2019, 23:27, מאת Jordan Borean ‏< >

Re: [ansible-project] Cannot rename VM with vmware_guest

2019-08-09 Thread Abhijeet Kasurde
There is a scenario guide - https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/scenario_rename_vm.html On Fri, Aug 9, 2019 at 5:19 PM Abhijeet Kasurde wrote: > Are you sure the `uuid` provided is correct uuid (hw_product_uuid in > vmware guest facts) ? > > I am able to ren

Re: [ansible-project] Cannot rename VM with vmware_guest

2019-08-09 Thread Abhijeet Kasurde
Are you sure the `uuid` provided is correct uuid (hw_product_uuid in vmware guest facts) ? I am able to rename existing VM using - ``` tasks: - name: Gather facts about datastore vmware_vm_facts: hostname: "{{ vcenter_server }}" username: "{{ vcenter_user }}" password: "{{ vcenter_pass }}" valida

[ansible-project] Cannot rename VM with vmware_guest

2019-08-09 Thread MKPhil
According to https://docs.ansible.com/ansible/latest/modules/vmware_guest_module.html I can rename a VM with Ansible by using: - name: Rename a virtual machine (requires the virtual machine's uuid)

Re: [ansible-project] Modules in languages other than Python?

2019-08-09 Thread Jordan Borean
There's no real examples that I know off, if you are not writing a module in Python (on Linux) or PowerShell (on Windows) it can still be done you just miss out on some of the helper functions that Ansible provides to parse the input requirements and output the end result back to the controller

[ansible-project] Re: Issue parsing array from Ansible to Shell Script

2019-08-09 Thread Mohtashim S
The servers are on python 2.7.5 I can't use python 3, btw would like to know the solution for python 3 along with a solution for python 2.7.5 ?? On Friday, August 9, 2019 at 12:24:27 PM UTC+5:30, Mohtashim S wrote: > > My requirement is pretty straight forward. > > I wish to pass & read a set

Re: [ansible-project] Issue parsing array from Ansible to Shell Script

2019-08-09 Thread Dick Visser
Can you try with python3? On Fri, 9 Aug 2019 at 08:54, Mohtashim S wrote: > > My requirement is pretty straight forward. > > I wish to pass & read a set of string as array from ansible which is > constructed by iterating over using with_items as show below. > >- name: set_fact > set_fac

Re: [ansible-project] Ansible Tower 3.5.1 - Installation - Valut_Pass

2019-08-09 Thread Kai Stian Olstad
On 09.08.2019 10:32, Kalyan Alamuru wrote: Oh ok.. Thanks for the update. I thought Tower's Open Source Offering is also there(Which I guess AWX) just checking whether any body's encountered similar issue out here or not.. AWX has it's own list, search and you'll find. -- Kai Stian Olstad

Re: [ansible-project] Re: Changing Registry key owner in Ansible

2019-08-09 Thread Yuval Zaltz
I Default permission for the local admin for the key is't full and unless admins take ownership on the key בתאריך יום ד׳, 7 באוג׳ 2019, 23:27, מאת Jordan Borean ‏: > The win_acl module just adds an ACE to the DACL of an object and doesn't > adjust the owner. Technically the win_owner module can

Re: [ansible-project] Ansible Tower 3.5.1 - Installation - Valut_Pass

2019-08-09 Thread Kalyan Alamuru
Oh ok.. Thanks for the update. I thought Tower's Open Source Offering is also there(Which I guess AWX) just checking whether any body's encountered similar issue out here or not.. On Thursday, 8 August 2019 16:13:42 UTC+1, Kai Stian Olstad wrote: > > On 08.08.2019 16:57, Kalyan Alamuru wrote: >

Re: [ansible-project] Modules in languages other than Python?

2019-08-09 Thread Kai Stian Olstad
On 09.08.2019 01:09, Mike Eggleston wrote: This page: https://docs.ansible.com/ansible/2.3/dev_guide/developing_modules_general.html states that modules can be in other languages. Are there any examples of this? I’m much more proficient in Perl than Python and would prefer to write in that langua

[ansible-project] Re: reading a log file with hostname in the playbook processed

2019-08-09 Thread Karther
Hey, The variables in ansible write with this synthaxe : Exemple : {{ inventory_hostname }} {{ my_variable }} If you write (hostname -s), ansible not understand this synthaxe :/ I hope I helped you Regards, Karther Le jeudi 8 août 2019 22:13:48 UTC+2, Veera a écrit : > > > I am trying to