[ansible-project] synchronize not working between

2018-01-30 Thread Gopi Krishna
Hi all, synchronize command is not working. --- - hosts: target tasks: - name: "copy between two remote hosts" synchronize: src: /root/gopi/file_149 dest: /root/gopi/ #delegate_to: "{{ groups['oraclesource'][0] }}" delegate_to:

[ansible-project] Question on hosts and group_vars setup, and error when running playbook

2018-01-30 Thread ZillaYT
I'm following the guidelines discussed in Laying out roles, inventories and playbooks , and I have segregated my development vs. productions files this way /path_to_playbooks/inventories/development/host_vars/git

[ansible-project] Access Denied Error while installing SQLServer using Ansible on remote Windows host.

2018-01-30 Thread suresh sargar
Hi All, i am trying to install SQLServer in silent mode on remote windows machine using ansible. in middle of execution its failed with below error. my target host is Azure Windows. 2018-01-30 12:27:47,300 [StandardOutput] INFO PATools - Action: Calculating default service account for AS

[ansible-project] vmware_guest_snapshot module unable to find VM with Ansible 2.4.2

2018-01-30 Thread Patrick Hunt
I have recently updated to Ansible 2.4.2 I have plays that will remove old snapshots from specific VMs and will create new snapshots for those VMs. The remove playbook is as follows: --- - hosts: localhost vars_prompt: - name: username prompt: "VCenter username" private: no

[ansible-project] Re: Access Denied Error while installing SQLServer using Ansible on remote Windows host.

2018-01-30 Thread suresh sargar
I tried with Win_shell and Win_command module both are giving same error. On Tuesday, January 30, 2018 at 6:25:11 PM UTC+5:30, suresh sargar wrote: > > Hi All, > > > i am trying to install SQLServer in silent mode on remote windows machine > using ansible. in middle of execution its failed with

Re: [ansible-project] Question on hosts and group_vars setup, and error when running playbook

2018-01-30 Thread ZillaYT
Thank you, that was the issue. Now I know that my host files MUST be in the same directory level as my group_vars directory. On Tuesday, January 30, 2018 at 10:43:14 AM UTC-5, Matt Martz wrote: > > Your inventory (hosts) file should not be inside of group_vars. > > Based on what I have read,

[ansible-project] Azure Auth using 'az login' like Terraform does

2018-01-30 Thread Tim Qin
I m trying to use ansible azure module, but the auth methods blocked me: - Service principles: it is no go as we are auth through enterprise AD on Azure portal - AD: simply provide username and password are not working because when typing my corp email addresses, Azure will redirect to my corp

[ansible-project] when conditionals syntax

2018-01-30 Thread John Harmon
Is something wrong with the following? It seems to get executed no matter what. In addition, where can I find more information about this syntax? Is this considered jinja2 syntax? or something else? - include_tasks: install.yml when: ( install|default(false)|lower = "true" | "yes" ) &&

[ansible-project] Getting latest version in `.galaxy_install_info`

2018-01-30 Thread jjelinek
Hi, If I have a requirements.yml like this: ``` --- - name: abc src: g...@github.com:my-super-repo/ansible-abc.git scm: git ``` it will pull in the role and inside `meta/.galaxy_install_info` the contents will look like this: ``` {install_date: 'Tue Jan 30 16:59:06 2018', version: ''} ```

Re: [ansible-project] when conditionals syntax

2018-01-30 Thread Matt Martz
Yes, you use of `| "yes"` is not proper jinja2. `|` is used to "pipe" something into a filter function, and "yes" is not a filter function. Are you trying to check if it also "yes". Look to using the bool filter (also use `and` instead of `&&`): ``` when: install|default(false)|bool and

Re: [ansible-project] when conditionals syntax

2018-01-30 Thread John Harmon
On Tuesday, January 30, 2018 at 9:23:29 AM UTC-7, Matt Martz wrote: > > Yes, you use of `| "yes"` is not proper jinja2. > > `|` is used to "pipe" something into a filter function, and "yes" is not a > filter function. > > Are you trying to check if it also "yes". Look to using the bool filter

[ansible-project] add multiple users

2018-01-30 Thread Joli Martinez
Hello, I am looking for a way to add multiple users to both Redhat and Debian/Ubuntu based systems with the following criteria 1. With either no password and have them create one at first login, or all with the same password and change it at first login 2. Be able to add them to the sudo

[ansible-project] How Ansible Works?

2018-01-30 Thread gracy layla
There are many similar automation tools available like Puppet , Capistrano, Chef, Salt, Space Walk etc, but Ansible categorize into two types of server: controlling machines and nodes. The controlling machine, where Ansible

[ansible-project] Re: Azure Auth using 'az login' like Terraform does

2018-01-30 Thread Jordan Borean
This was added with https://github.com/ansible/ansible/pull/35213 and will be available in the 2.5 release. You can checkout the latest devel branch if you wanted to try it out today. Thanks Jordan -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] Re: Loops in Ansible

2018-01-30 Thread Kai Stian Olstad
On Tuesday, 30 January 2018 20.16.29 CET ZillaYT wrote: > I'm trying to do the same thing. What version of Ansible are you using? I > use v2.4.2.0 and the acl module does NOT have a recursive parameter, but I > see you use it? Where to you get that from? >From the docs

[ansible-project] Re: Loops in Ansible

2018-01-30 Thread ZillaYT
I'm trying to do the same thing. What version of Ansible are you using? I use v2.4.2.0 and the acl module does NOT have a recursive parameter, but I see you use it? On Wednesday, March 15, 2017 at 9:50:31 AM UTC-4, Андрей Климентьев wrote: > > Hi, everyone. > > Would it be possible to somehow

Re: [ansible-project] Re: Loops in Ansible

2018-01-30 Thread Kai Stian Olstad
On Tuesday, 30 January 2018 20.25.19 CET ZillaYT wrote: > I was looking > here http://ansible-manual.readthedocs.io/en/latest/acl_module.html I would suggest to use the official documentation and not some random site on the Internet. -- Kai Stian Olstad -- You received this message because

[ansible-project] Linux Compare Two hosts operating system versions and applications versions

2018-01-30 Thread srikanthgali187
This is to check Disaster recovery hosts are having same configuration/OS levels/application versions as DC hosts. Any idea how to auto mate this with ansible? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Re: Ansible & Jenkins integration issue

2018-01-30 Thread Malcolm Hussain-Gambles
Are you using the ansible plugin within Jenkins? Or running it as a cli within jenkins? I've had no issues (yet) using the ansible plugin. On Tuesday, 30 January 2018 09:12:33 UTC, GornerM wrote: > > Ansible playbooks passes without any issues, when I run it directly from > cli (also inside of

[ansible-project] Ansible & Jenkins integration issue

2018-01-30 Thread GornerM
Ansible playbooks passes without any issues, when I run it directly from cli (also inside of Jenkins workspace) But I receives the following error "FAILED! => {"failed": true, "msg": "ERROR! the handler 'juniper_junos_facts' was not found" when ansible runs by execution of Jenkins job.

[ansible-project] Cygwin breaking ansible

2018-01-30 Thread lpescatore via Ansible Project
Hi folks, I have a WEIRD problem. After running cygwin ssh-host-config on my PC, which starts sshd and rsync services, suddenly I can no longer run ansible. I get this error: root@Raspi_Ctrl:/ansible/playbook/nuc# ansible -i /ansible/hosts nuc -m win_ping * [WARNING]: FATAL ERROR DURING FILE

Re: [ansible-project] Re: Simple cisco IOS show version

2018-01-30 Thread Surjeet Singh
Hi, I would like to share that i managed to collect inventory information with only minor changes in ansible playbook. sharing just to help other people who new learner like me. # write facts in inventory - name: write the inventory in into file copy: content: |

Re: [ansible-project] Re: callback plugin log_plays double output in logs

2018-01-30 Thread Ansible Krazy
Is it also work if I use custom ansible.cfg file ... how to call callback plugins in custom ansible.cfg On Fri, Jan 12, 2018 at 2:27 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 09.01.2018 22:00, ansiblekr...@gmail.com wrote: > >> So I defined it under

[ansible-project] Re: Ansible zabbix module issues

2018-01-30 Thread Andrew Morgan
thank you for "Ansible is hard coded to /usr/bin/python"..resolved On Wednesday, January 24, 2018 at 1:52:57 AM UTC-5, Andrew Morgan wrote: > > Hello All, > > My ansible module is > > ansible 2.4.2.0 > config file = /ansible/ansible.cfg > configured module search path =

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

2018-01-30 Thread Varun Chopra
There was a recent post on Reddit about this... Here it is: https://www.reddit.com/r/PowerShell/comments/7qra9r/double_hop_solvers_and_resourcebased_kerberos/ CredSSP isn't really the best way to go about this. And I think this post should go on Git as Ansible needs a better way to cover

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

2018-01-30 Thread Павел Полушин
I see this topic but it not answers to my querstion. Common scenarioo when all servers are on windows server is covered in article. вторник, 30 января 2018 г., 12:43:46 UTC+3 пользователь Павел Полушин написал: > > Hello. > I have security-related question. > In our environment we use

[ansible-project] how to disable paramiko log in ansible.log

2018-01-30 Thread Leon Xie
Hi all, I am using ansible 2.4.2 as below: ++ [root@server]# ansible-playbook --version ansible-playbook 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path =

[ansible-project] Re: how to disable paramiko log in ansible.log

2018-01-30 Thread Leon Xie
My Linux server is RHEL6 [root@server]# rpm -qa | grep release redhat-release-server-6Server-6.9.0.4.el6.x86_64 -- You received this message because you are subscribed to the Google