Re: [ansible-project] yum install through proxy

2019-06-17 Thread Michael Mullay
Chris, You should be able to use 'environment' keyword and set a variable for the proxy per: https://docs.ansible.com/ansible/latest/user_guide/playbooks_environment.html On Mon, Jun 17, 2019 at 9:40 PM 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > > > Hi all, > > Is there any

[ansible-project] yum install through proxy

2019-06-17 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Hi all, Is there any way to install an rpm through the yum module and direct that install through a proxy? Thanks! Chris -- 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

[ansible-project] Re: Shell/Command module troubleshooting

2019-06-17 Thread Kai F.
Dear Jon, Do you have any progress on this issue? It feels like I hit the same issue in my environment. The only difference is that I have a guestmount command followed by a series copy and template commands It seemed that, guestmount command is not work inside ansible prepared environment.

Re: [ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Thomas Spear
Thanks. I'll give that a shot On Mon, Jun 17, 2019, 6:26 PM Dan Linder wrote: > Since you have at least one working and one failing machine (presumably of > the same OS version), can you compare the "rpm -qa" output and see what's > different between the two just in case it's a simple package

[ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Dan Linder
Since you have at least one working and one failing machine (presumably of the same OS version), can you compare the "rpm -qa" output and see what's different between the two just in case it's a simple package that was missing? On Sunday, June 16, 2019 at 2:10:04 PM UTC-5, Thomas Spear wrote:

[ansible-project] Re: Install Windows Identity Extensions with ansible/Chocolatey

2019-06-17 Thread Jordan Borean
If the package is returning 0 but not actually installing itself you need to find out why, the usual case is that you are running over WinRM which does change the behaviour slightly. Unfortunately Chocolatey is mostly a black box in Ansible, all the module does is calls 'choco install '.

Re: [ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Thomas Spear
Thanks for that. I just checked and I do get json formatted output with that flag. I'll try to get our ansible infrastructure team to take a look. Thanks again. On Mon, Jun 17, 2019, 2:35 PM Brian Coca wrote: > depends, some build it from gems with diff options, some have it all > in one

Re: [ansible-project] Ansible Ovir Problem

2019-06-17 Thread Jonathan Lozada De La Matta
what ansible version are you using? On Mon, Jun 17, 2019 at 4:10 PM Jibsan Joel Rosa Toirac wrote: > --- > - name: Obtain SSO token with using username/password credentials > ovirt_auth: > url: https://192.168.14.159/ovirt-engine/api > username: admin@internal > password:

Re: [ansible-project] Ansible Ovir Problem

2019-06-17 Thread Jibsan Joel Rosa Toirac
--- - name: Obtain SSO token with using username/password credentials ovirt_auth: url: https://192.168.14.159/ovirt-engine/api username: admin@internal password: scorpionsrm ca_file: /etc/pki/ovirt-engine/ca.pem - name: Create and run VM from template ovirt_vms: auth: "{{

Re: [ansible-project] Ansible Ovir Problem

2019-06-17 Thread Jonathan Lozada De La Matta
can you provide the tasks? On Mon, Jun 17, 2019 at 3:37 PM Jibsan Joel Rosa Toirac wrote: > Hi every one I have a problem. I'm trying to use Ansible to create Ovirt > VMs, but the problem is that The role let me make the Auth, but at the time > to create de VM gives me an error: > > An

[ansible-project] Ansible Ovir Problem

2019-06-17 Thread Jibsan Joel Rosa Toirac
Hi every one I have a problem. I'm trying to use Ansible to create Ovirt VMs, but the problem is that The role let me make the Auth, but at the time to create de VM gives me an error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError:

Re: [ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Brian Coca
depends, some build it from gems with diff options, some have it all in one package, some have diff packages, normally testing 'facter --json' should be enough to tell you -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Install Windows Identity Extensions with ansible/Chocolatey

2019-06-17 Thread Yue
Hello I hit a problem when trying to install Windows Identity Extensions with ansible/chocolatey. (ansible 2.8.1) I created an package for Windows Identity extensions: The .nuspec http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd;> MicrosoftIdentityExtensions_x64

Re: [ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Thomas Spear
How can I tell if that's the case? They every server's install should be the same. On Mon, Jun 17, 2019, 1:41 PM Brian Coca wrote: > One note, factor and ohai must support JSON output for the setup > module to be able to use them, so they won't work unless they were > installed with JSON

Re: [ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Brian Coca
One note, factor and ohai must support JSON output for the setup module to be able to use them, so they won't work unless they were installed with JSON support. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Need to find out System hardware details for windows machine

2019-06-17 Thread Brian Coca
On Mon, Jun 17, 2019 at 2:01 PM nandha kumar wrote: > > Thanks Brian..how do we extract the details from the output? not sure what you mean, you just access the details. > > Is there any other way apart from gathering fact Brian? You can write your own module to do the same? -- -- Brian

Re: [ansible-project] Need to find out System hardware details for windows machine

2019-06-17 Thread nandha kumar
Thanks Brian..how do we extract the details from the output? Is there any other way apart from gathering fact Brian? On Mon, Jun 17, 2019, 9:00 PM Brian Coca wrote: > fact gathering should get you all that information, inspect > `ansible_facts` variable. > > > -- > -- > Brian Coca > >

Re: [ansible-project] Re: Ansible usage of puppet "facter" not working in some hosts

2019-06-17 Thread Kai Stian Olstad
On 17.06.2019 02:12, Thomas Spear wrote: > Hello, thanks for the link. > > Unfortunately, I am trying to debug the setup module, which is bundled with > the app from RedHat. I don't think I would be able to add a breakpoint to > that module, least of all on a production system (which,

Re: [ansible-project] Need to find out System hardware details for windows machine

2019-06-17 Thread Brian Coca
fact gathering should get you all that information, inspect `ansible_facts` variable. -- -- 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

Re: [ansible-project] Re: [WARNING]: flush_handlers task does not support when conditional

2019-06-17 Thread Matt Martz
When using `import_tasks`, ansible will read the file, and effectively replace your `import_tasks` with the tasks that are inside it. When we do that, the `when` statement gets added to each individual task within. As such, you get this warning. Switching to `include_tasks` should avoid this.

Re: [ansible-project] Re: changed_when in a loop gets lost

2019-06-17 Thread Matt Martz
This appears to be a bug in the default callback plugin, and only with `debug`. If you use some other task like `ping`, it would show it. The callback plugin "cleans" the result using `self._clean_results` in `v2_runner_item_on_ok` which strips `changed` from `debug` tasks, as such the callback

[ansible-project] Re: ansible winrm : the specified credentials were rejected by the server

2019-06-17 Thread Aviya Singh
Hi, I have tried the below activity and still I am getting the same error. Any Help? On Tuesday, February 14, 2017 at 11:50:28 PM UTC+5:30, Hmdi Bz wrote: > > Hi, > I'm using ansible on centos 7 guest on virtualBox using a bridged network > with a windows host > they can both ping each

Re: [ansible-project] ansible syntax to use "if-else" and "set"

2019-06-17 Thread Ansar Sahit
I noticed Host "{{ hostvars.localhost.group}}" Isn't working. What's the best way to choose host groups on which my playbook should run dynamically kindly help. On Jun 17, 2019 8:20 AM, "Ansar Sahit" wrote: HI Kai , I tried giving if in a single line and still get same error. - name : set

[ansible-project] Re: Win_copy with become and SMB2 -> Limit transfer speed

2019-06-17 Thread 'ground7612' via Ansible Project
Thank you Jordan! -- 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 post to this group, send email to

[ansible-project] Re: Error when i use shell: ./mon_script

2019-06-17 Thread Shivharsh Singh
Hi Ryad, I have not been able to reproduce the issue with the information provided in your query. My playbook executed absolutely fine on Ansible v 2.7.10 --- - hosts: myhost gather_facts: false tasks: - name: "Say Hello query.sh" shell: ./query.sh delegate_to: localhost Could

[ansible-project] Re: Error when i use shell: ./mon_script

2019-06-17 Thread Shivharsh Singh
Hi Ryad, I have not been able to reproduce the issue with the information provided in your query. Could you please provide below information to further analyse the issue? On Thursday, 13 June 2019 20:09:03 UTC+5:30, Ryad karkar wrote: > > Hi, > > I have one script deployment.sh, when i play

[ansible-project] Re: Win_copy with become and SMB2 -> Limit transfer speed

2019-06-17 Thread Jordan Borean
If you are using 'remote_src: yes' then Ansible is pretty much just calling the CopyFile API and is at the mercy of whatever that does. If there are some policies you can set on the server side, or even the client side then Ansible does not know anything about them and will just delegate the

[ansible-project] custom filter used in aggregate doesn't receive the correct list.

2019-06-17 Thread 'Fernando GarcĂ­a Fernandez' via Ansible Project
Hello I'm trying to use aggregates to speed up configuration of my Nexus switches. I'm using a custom filter to generate a customized list of interfaces based on a "interfaces" list, defined in the group_vars and host_vars files (some of the resources defined in each of them). But my filter,

[ansible-project] Win_copy with become and SMB2 -> Limit transfer speed

2019-06-17 Thread 'ground7612' via Ansible Project
Hey All Quick question with regards to using win_copy with become and SMB2 protocol (Windows File Server to Windows Targets). QoS is implemented, but not in the whole environment. There is no option currently to limit transfer speed with the win-copy module and become, correct? Would a