[ansible-project] Re: Ansible setting - add proxy

2020-02-07 Thread Pierre Ochsenbein
## ## How to fix Proxy error ## - Locate transport.py that comes with pywinrm - Modify the following line session.trust to make it false # session.trust_env = True session.trust_env = False TASK [../roles/windows-files : Touch file for test] **

Re: [ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-07 Thread 'Chiku' via Ansible Project
Maybe you can check about serial https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#rolling-update-batch-size On 07/02/2020 08:08, Rahul Kumar wrote: Hi Ansible Gurus, I need some suggestions for performing online opeations on a cluster. Problem :  I have a 5 nodes clu

Re: [ansible-project] nmcli module seems broken. Documention mentions old libraries for CentOS8/RHEL8

2020-02-07 Thread Vladimir Botka
On Thu, 6 Feb 2020 19:03:07 -0800 (PST) matzuba wrote: > I am trying to use the nmcli module to set DNS server and other network > related configuration rather than using templates > *Is it still broken? should i give up on this module?* > the module dependencies mention an old library which i

Re: [ansible-project] aws ece dettach Volume error

2020-02-07 Thread Dick Visser
The error says: Unable to detach root volume 'vol-0a75b01a93b9e6778' from instance 'i-065d2c70867a8f874' Which makes sense. Checking on https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html: "If an EBS volume is the root device of an instance, you must stop the instance

Re: [ansible-project] nmcli module seems broken. Documention mentions old libraries for CentOS8/RHEL8

2020-02-07 Thread matzuba
Cheers Vlad, that does help! I couldn't work out from the github thread if the fix had been merged back into the code or not? the dev mentions at the end about making sure the library is there. I have installed the new library in centos8 and it makes no difference How can i easily tell if t

[ansible-project] win_dsc not working

2020-02-07 Thread Guido Giorgi
Hello, i'm trying to use Ansible win_dsc module on 2 different windows host (2012 R2 and 2019). I install some additional DSC modules like SqlServerDsc using win_psmodule: # - name: Powershell | Check for SQLServer DSC Powershell module # win_psmodule: # name: SQLServerDsc # sta

[ansible-project] Switch to root user using dzdo

2020-02-07 Thread Poemy
I have an ansible playblook running some tasks for my user, which I log in through ssh. The user has root privileges by running following command in the terminal: dzdo su - It's actually the only way (no sudo, no root password) to get root access. Now, what I want to do is to switch my user to

Re: [ansible-project] nmcli module seems broken. Documention mentions old libraries for CentOS8/RHEL8

2020-02-07 Thread Vladimir Botka
On Fri, 7 Feb 2020 02:32:12 -0800 (PST) matzuba wrote: > [...] > NM seems to be the recommended way and where things are going so i would > like to get this to work but obviously, i cant use the nmcli module to do > so. > NM will still read the interface scripts and i have also tested > /etc/n

[ansible-project] How to split a json key containing a colon into 2 keys

2020-02-07 Thread jean-christophe manciot
I receive some json data which *sometimes* start with the first key within "json_data" variable containing a ':', such as: "json_data": { "key1:key2": { "key3": [ "value31", "value32", "..." ] } } The goal is to split "key1:key2" into 2

[ansible-project] Ansible VM and GNS3 routers

2020-02-07 Thread jesty sam
Hi I have two VM's in Azure, 1 VM running Ansible and the other having GNS3 (with connected routers and switches). I am able to telnet from Ansible server to the Routers configured in GNS3 however when i run a playbook i get an error PLAY [gather information from routers] ***

Re: [ansible-project] How to split a json key containing a colon into 2 keys

2020-02-07 Thread Vladimir Botka
On Fri, 7 Feb 2020 08:14:56 -0800 (PST) jean-christophe manciot wrote: > I receive some json data which *sometimes* start with the first key within > "json_data" variable containing a ':', such as: > "json_data": { > "key1:key2": { > "key3": [ > "value31", > "

[ansible-project] ec2 asg does not spin or replace instances when existing auto scaling group is modified with new launch configuration

2020-02-07 Thread shivani
Hi I am facing an issue with ec2_asg module when I use target group arn it does not spin or replace instances. I I use classic load balancer it works fine replaces the instances. When new asg is created it spins up the instances. If existing asg is modified to use new launch configuration then i

[ansible-project] Re: Anible windows script get stuck for my of my machine - Although reboot command is provided to reboot if required. any idea, why ?

2020-02-07 Thread Work-Hard
It's been a day by playbook is stuck. so stopped it and ran -vvv. it's showing the following* Output in a LOOP*. I am not sure why is stuck EXEC (via pipeline wrapper) win_updates: check win_updates results for automatic reboot: {"_ansible_parsed": true, "filtered_updates": {"90f5678b-7d52-4e49-

[ansible-project] Re: Switch to root user using dzdo

2020-02-07 Thread Work-Hard
as a workaround, you can change the file permission on linux to act as root for your target area. On Friday, February 7, 2020 at 2:45:02 AM UTC-8, Poemy wrote: > > I have an ansible playblook running some tasks for my user, which I log in > through ssh. > > The user has root privileges by runnin

Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-07 Thread Dick Visser
On Fri, 7 Feb 2020 at 21:17, Work-Hard wrote: > > as a workaround, you can change the file permission on linux to act as root > for your target area. That sounds like throwing all security out of the window. Please refrain from giving this kind of useless advice... -- You received this message

Re: [ansible-project] Switch to root user using dzdo

2020-02-07 Thread James Cassell
On Fri, Feb 7, 2020, at 5:45 AM, Poemy wrote: > I have an ansible playblook running some tasks for my user, which I log > in through ssh. > > The user has root privileges by running following command in the terminal: > ` > dzdo su - > ` > > It's actually the only way (no sudo, no root password

Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-07 Thread Work-Hard
oh yea? how's that? Please do explain! On Friday, February 7, 2020 at 12:48:39 PM UTC-8, Dick Visser wrote: > > On Fri, 7 Feb 2020 at 21:17, Work-Hard > > wrote: > > > > as a workaround, you can change the file permission on linux to act as > root for your target area. > > That sounds like th

[ansible-project] Re: Anible windows script get stuck for my of my machine - Although reboot command is provided to reboot if required. any idea, why ?

2020-02-07 Thread Jimmy Malhan
Nobody is providing resolution. This is un-usual how it's not throwing any errors. It seems like a bug, maybe? On Friday, February 7, 2020 at 12:12:53 PM UTC-8, Work-Hard wrote: > > It's been a day by playbook is stuck. so stopped it and ran -vvv. it's > showing the following* Output in a LOOP*.