[ansible-project] Trimming

2018-02-05 Thread Suporter
hi, i have a variable registered as Location and the value is C:\Windows\System32, i want to modify it to C:\windows\felik , i would like to modify the location upto drive level wherever required.. how can i do this -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Re: ansible conditions

2018-02-05 Thread Sidh
Thanks, got more info after debugging. It's resolved. Idea and when condition was ok. Only issue was that i was evaluating wrong parameterized input in this case. Regards, Sidh On Sunday, February 4, 2018 at 9:22:33 PM UTC+1, eshan TANDON wrote: > > Hi Sudhir, > Try logging the actual values:

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-05 Thread Jordan Borean
By default, the Kerberos ticket does not have delegation enabled, you can set ansible_winrm_kerberos_delegation: True in your host vars and Ansible will set the delegation flag required to get a kerb ticket with delegation. If this doesn't work you may need to configure your AD environment to

[ansible-project] Re: errors in backing up a config from a juniper device

2018-02-05 Thread 'Daley Okuwa' via Ansible Project
still debugging my issues I thought it was a netconf issue and enabled netconf over ssh on the devices still having the same issue 2018-02-05 11:46:33,654 p=17538 u=ansible | PLAY [BACKUP CONFIGS OF JUNOS DEVICES]

Re: [ansible-project] To Login SOAP API

2018-02-05 Thread eshan TANDON
Not sure if there is an explicit module to make soap call however u can use the shell module: http://docs.ansible.com/ansible/latest/shell_module.html Here is some documentation on how to make soap call using curl: http://lancegatlin.org/tech/test-a-soap-web-service-using-curl Combining the

[ansible-project] The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpecte

2018-02-05 Thread Moncy Varghese
Dear All, I am having issues running the final step for ansible , openstack-ansible setup-openstack.yml .It reports the below error /opt/openstack-ansible/playbooks# screen Monday 05 February 2018 16:27:19 +0300 (0:00:00.106) 0:00:07.180 *** [WARNING]: The loop variable 'item'

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-05 Thread Jeremie Levy
Thanks Jordan So i have this option activated since the beginning but the double hop is not resolved. What extra configuration is needed here? WINRM CLOSE SHELL: 22A19915-A7B0-4AFB-B840-263A9980023A WINRM RESULT u'' WINRM STDOUT WINRM

Re: [ansible-project] Loading all group_vars content even if only one is needed

2018-02-05 Thread 0lai . mariano
I see. That explains it then. Thanks! On Friday, February 2, 2018 at 9:46:05 PM UTC+8, Kai Stian Olstad wrote: > > On Friday, 2 February 2018 13.31.19 CET 0lai.m...@gmail.com > wrote: > > > > Hi. I'm encountering a problem in my deployments which may or may not be > a > > bug. > > > > In

[ansible-project] Re: Dynamic reusability of a playbook — include_tasks, include_role, import_playbook … Mission impossible?

2018-02-05 Thread 'J Hawkesworth' via Ansible Project
There are further changes to dynamic inclusion of tasks in ansible 2.5, so probably worth while testing with latest code rather 2.4.x versions now. see https://docs.ansible.com/ansible/devel/porting_guide_2.5.html and https://groups.google.com/forum/#!topic/ansible-project/GsJ7GjUhI_g regarding

[ansible-project] Re: Ansible scans all files under host_vars when executing a playbook

2018-02-05 Thread Carl Wainwright
Hi, Do you know if there a way to sanity check updated group/host var files before I commit the changes to Git? Regards, Carl -- 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

[ansible-project] Re: Trimming

2018-02-05 Thread 'J Hawkesworth' via Ansible Project
You can probably use the win_splitdrive filter to get the drive letter from the path http://docs.ansible.com/ansible/latest/playbooks_filters.html You may also perhaps find using the SystemDrive and SystemRoot environment variables contain what you need. The following powershell will return

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-05 Thread 'J Hawkesworth' via Ansible Project
Can you share your playbook or tasks to reproduce this, the error message here isn't enough on its own to work out what is needed? Many thanks, Jon On Monday, February 5, 2018 at 1:00:24 PM UTC, Jeremie Levy wrote: > > Thanks Jordan > So i have this option activated since the beginning but the

Re: [ansible-project] Re: Ansible scans all files under host_vars when executing a playbook

2018-02-05 Thread Brian Coca
I use this 1 liner. python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < host_vars/testhost.yml -- -- 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

[ansible-project] Help printing out key/value pair from a register?

2018-02-05 Thread ZillaYT
I have a register with the following output of a query from the acl module. ok: [server.domain.com] => { "acl_query.results": [ { "_ansible_item_result": true, "_ansible_no_log": false, "changed": false, "item": [ {

[ansible-project] Re: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexp

2018-02-05 Thread ZillaYT
Where's your code? On Monday, February 5, 2018 at 9:58:42 AM UTC-5, Moncy Varghese wrote: > > Dear All, > > > I am having issues running the final step for ansible , > openstack-ansible setup-openstack.yml .It reports the below error > /opt/openstack-ansible/playbooks# screen > Monday 05

[ansible-project] Re: errors in backing up a config from a juniper device

2018-02-05 Thread 'Daley Okuwa' via Ansible Project
On Friday, February 2, 2018 at 11:52:16 AM UTC, Daley Okuwa wrote: > > hello all > I have this in my backup_config_yaml > > --- > - name: BACKUP CONFIGS OF JUNOS DEVICES > hosts: all > connection: local > gather_facts: no > tasks: > - name: GET CONFIG > junos_get_config: >

[ansible-project] Re: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexp

2018-02-05 Thread ZillaYT
Regarding your second question about HAproxy and Ansible, well Ansible is NOT magic. Ansible does NOT do anything you wouldn't/couldn't manually, or in any other scripting language, do otherwise. For example, if I want to install services via package manger I may do this Shell script

[ansible-project] Ansible keepalived increment int

2018-02-05 Thread Owen Corcoran
Hi all I have a template I've been working on for keepalived and as part of the template, I want to get it to loop through a list of virtual ips and sub interface eth0 based on the number of virtual ips to manage . What i have so far is below . Any one any ideas ? virtual_ipaddress {

[ansible-project] Re: Creating multiple rules on an AWS load balancer listener

2018-02-05 Thread george
So if we pretend I was updating two ALBs with their own rulesets, I'd be trying to loop within a loop? I'll give nested loops a try in that case. Thanks On Monday, February 5, 2018 at 3:44:34 AM UTC, eshan TANDON wrote: > > Hi There, > Seems like the code is executing the entire block twice, ie

[ansible-project] Re: Help printing out key/value pair from a register?

2018-02-05 Thread Claudia de Luna
Hi ZillaYT, Its sometimes difficult to figure out how to get to specific values that are returned. Some times you have to "deconstruct" it. If you take the output you get when you run your playbook and paste it into something like https://jsoneditoronline.org/ you can start to understand the

[ansible-project] SSH using non-admin user, then sudo using admin user

2018-02-05 Thread Andrew
Hello, We have many macOS machines that have ssh access using a non-admin user (no sudo access), but no ssh for an admin user. We'd like to sudo using the admin account. I've looked at the *become* documentation page and it doesn't seem to allow what we need. Is this possible in Ansible?

Re: [ansible-project] Ansible keepalived increment int

2018-02-05 Thread Kai Stian Olstad
On Monday, 5 February 2018 18.24.24 CET Owen Corcoran wrote: > I have a template I've been working on for keepalived and as part of the > template, I want to get it to loop through a list of virtual ips and sub > interface eth0 based on the number of virtual ips to manage . What i have so > far

[ansible-project] Re: Stuck on with_items and trying to pass specific value from 1 task to the next

2018-02-05 Thread ZillaYT
The answer in Ansible lookup values from complex structure? may give you and idea. On Friday, February 2, 2018 at 11:43:51 AM UTC-5, davros1984 wrote: > > Hi, > > I've spent the past few days trying to

[ansible-project] win_domain_membership - Setting Hostname when No Domain Is Present

2018-02-05 Thread Justin Seiser
I have a windows ec2 instance, that I would like to set the hostname on. Issue being, the module wants Domain Admin credentials which do not exist so I am not sure what is really needed here. ansible 2.4.3.0 config file = /home/justin/Documents/projects/ansible_mfa/ansible.cfg configured

[ansible-project] Re: Ansible scans all files under host_vars when executing a playbook

2018-02-05 Thread digi691
You could also just run ansible-playbook -i {{inventory}} {{ some-playbook}} --syntax-check - Chris On Monday, February 5, 2018 at 9:11:42 AM UTC-6, Carl Wainwright wrote: > > Hi, > > Do you know if there a way to sanity check updated group/host var files > before I commit the changes to Git?

Re: [ansible-project] Simple YAMl File syntax errors

2018-02-05 Thread Brian Coca
Boht plays are tasks are lists, you are passing a dictionaries, just need 1 character to 'fix it' - hosts: all tasks: - yum: "name=httpd state=installed" ^ see the dashes? That is what 'playbook must be a list of plays' means, if you only fix - hosts, next would be 'tasks needs to be a

[ansible-project] Re: win_domain_membership - Setting Hostname when No Domain Is Present

2018-02-05 Thread Jordan Borean
The win_domain_membership module isn't designed to set the hostname but rather manage whether Windows is a member of a domain or not. It does have the added ability to set the hostname so you don't have to do so in a separate task but that's just an extra functionality it offers. The reason

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-05 Thread Jordan Borean
What I would try so that we can narrow down the issue * Run win_package but set the path to a local path and see if that works * Run a win_stat of the network path executable and see if it sees the file (exists is True) * Use the username/password options and set it to "{{ ansible_user }}" and

[ansible-project] Re: Ansible - create LVM

2018-02-05 Thread tasiorek27
Thank you so much for exhaustive explanation. Best regards, Michal On Monday, February 5, 2018 at 10:07:06 PM UTC+1, Henning Rohde wrote: > > As the output of some shell-command is not per se delimited to one single > value, registering it creates a list. > > Thus, using "{{ some_list }}" get's

[ansible-project] Ansible - create LVM

2018-02-05 Thread tasiorek27
Hello, I'm pretty new in ansible, so excuse me for this (stupid?) question, but it bothers me. I'm trying to set up LVM on the remote host with ansible. Here is my role: --- - name: install lvm2 yum: name: "{{ item }}" state: present with_items: - lvm2 tags: - install -