Re: [ansible-project] Ansible parallel block execution

2019-01-16 Thread S C Rigler
There is now a "reboot" module (showed up in 2.7?) that will reboot the host and wait for it to come back. --Steve On Wed, Jan 16, 2019 at 3:26 AM Raoul wrote: > > Hi, > > I am using in an Ansible playbook blocks to execute reboots on hosts when > required after applying updates. I have to

[ansible-project] Re: Possible to update target OS from an ISO?

2019-01-16 Thread Todd Sampson
Hi Benjamin, Thanks for pointing me in the right direction. Our goal is to update a few hundred hosts at different customer's sites all over the country. We're hoping to not have to have any physical presence. I've been looking at a program called FOG. One problem I'm seeing is that the bios

Re: [ansible-project] Ansible parallel block execution

2019-01-16 Thread Raoul
Hi Steve, thanks for the hint, I'll give this module a try. Kind regards, Raoul On Wednesday, January 16, 2019 at 1:57:08 PM UTC+1, Steve R wrote: > > There is now a "reboot" module (showed up in 2.7?) that will reboot > the host and wait for it to come back. > > --Steve > > On Wed, Jan 16,

[ansible-project] Re: Generating Quagga iBGP and eBGP conf files using Ansible

2019-01-16 Thread nchakrab
Hello Shahrooz, Currently, this scenario is not supported. However, we are actively working on BGP automation (including FRR) and there's a proposal in place for it (https://github.com/ansible-network/network-proposals/issues/5). It would be great if you can add your suggestions/views to it.

[ansible-project] alternate shadow file?

2019-01-16 Thread eric.b.hymowitz via Ansible Project
Greetings. I would like to use the "user" module to change my password, but the shadow file is not located in /etc/shadow . It's in an alternate location, specifically, /mnt/pxe/etc/shadow . Is there a way to accomplish this? I have a bad feeling that the answer is "only if the underlying

Re: [ansible-project] Use of Ansible under PowerVC

2019-01-16 Thread Hugo Gonzalez
Hello Bernard, On 1/16/19 4:19 PM, Bernard Tremblay wrote: Hi, We are trying to use ansible in a PowerVC environment. We have a cluster of Power machines connected to a SAN box, we run SLES linux and Windows server to use SAP stuff. I would like to find any

[ansible-project] Exclude match from with_items

2019-01-16 Thread John Harmon
How might I go about excluding one item found under with_items? For example, assume the following: ok: [mytestserver] => { "aduser": { "account_locked": false, "attempts": 1, "changed": false, "city": "Spanish Fork", "company": "My Test Company",

Re: [ansible-project] Exclude match from with_items

2019-01-16 Thread Brian Coca
Im unclear on what you want, but `when` executes PER loop iteration, so you can check `item` and skip that iteration depending on the condition you want. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] Re: Exclude match from with_items

2019-01-16 Thread Brian Coca
well, just reading teh docs on win_domain_user, seems you want` group_action: replace` -- -- 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] alternate shadow file?

2019-01-16 Thread Brian Coca
use chroot to /mnt/pxe and then use user module, passwd will then 'work as expected', with ansible this might mean using the 'chroot' connection plugin -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Windows Remote Desktop Access for Users using Ansible

2019-01-16 Thread Subhi Andrews
add the people to remote desktop users group using win_group_membership module. That's the solution. On Tue, Jan 15, 2019 at 9:29 AM Subhi Andrews wrote: > Hi folks, > > I am trying to configure RDP access to users who need to access to certain > hosts. Is there a way to automate this using

[ansible-project] Re: Exclude match from with_items

2019-01-16 Thread John Harmon
I should clarify a little. I want to remove all groups except "Domain Users" from the user specified. I am also already using a when statement: tasks: - name: "Disable non-vip user {{ user }}" win_domain_user: name: "{{ user }}" password:

[ansible-project] Use of Ansible under PowerVC

2019-01-16 Thread Bernard Tremblay
Hi, We are trying to use ansible in a PowerVC environment. We have a cluster of Power machines connected to a SAN box, we run SLES linux and Windows server to use SAP stuff. I would like to find any resources/documentation/Playbooks/Roles about using ansible in that context. Anybody knows

Re: [ansible-project] skip_unreachable ?

2019-01-16 Thread Brian Coca
So what you are asking would be the 'default' way ansible operates, it removes 'unreachable' hosts from the rest of the play and then continues with the rest of the hosts. > - any future tasks in the play against that host will not be run (no point as > they will all fail as host unreachable).

Re: [ansible-project] Need Clloudera prerequisite Ansible Scripts

2019-01-16 Thread Jonathan Lozada De La Matta
You can create some by looking at the cloudera requirements. On Wed, Jan 16, 2019 at 5:37 PM ashok kumar penumudi wrote: > Hi,we are planning to automate cloudera installation by using Ansible > scripts. Could you please share scripts asap. > > -- > You received this message because you are

[ansible-project] Need Clloudera prerequisite Ansible Scripts

2019-01-16 Thread ashok kumar penumudi
Hi,we are planning to automate cloudera installation by using Ansible scripts. Could you please share scripts asap. -- 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

Re: [ansible-project] skip_unreachable ?

2019-01-16 Thread Adam E
thanks for the reply Brian. Yes, it sounds like clear_host_errors i think will be too big of a hammer, I just want to ignore unreachable. I'll have to figure something else out then, have a couple other scenarios in mind anyways, gonna also look at something like

[ansible-project] Re: Exclude match from with_items

2019-01-16 Thread John Harmon
> > > I re-read you response Brian I should be able to append to my when > statement with an and statement or something similar. I will have to go > and test it out. > Wow, I totally missed that. That should do exactly what I want to. Thank you! -- You received this message because

[ansible-project] Automating firmware upgrades on Dell Networking 7048P Switches

2019-01-16 Thread 'Nathan' via Ansible Project
Hello all, I currently have 100 Dell Networking 7048P Switches that will need to be upgraded to the latest firmware and was hoping for some assistance on finding either an existing script or creating one for the Dell series switches. I am relatively new to Ansible and keen to learn so any

[ansible-project] Ansible parallel block execution

2019-01-16 Thread Tony Chia
You can try adding —fork some-large-number to your ansible playbook command to force it execute in parallel -- 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

[ansible-project] Re: Exclude match from with_items

2019-01-16 Thread John Harmon
On Wednesday, January 16, 2019 at 4:14:36 PM UTC-7, John Harmon wrote: > > I should clarify a little. I want to remove all groups except "Domain > Users" from the user specified. I am also already using a when statement: > tasks: > - name: "Disable non-vip user {{ user }}" >

[ansible-project] Ansible parallel block execution

2019-01-16 Thread Raoul
Hi, I am using in an Ansible playbook blocks to execute reboots on hosts when required after applying updates. I have to ensure that the hosts are back online after reboot. Using 'strategy: free' so that all defined tasks aren't executed in linear order and it is not waited for a task to