[ansible-project] Ansible 2.4.3 has been released

2018-01-31 Thread Toshio Kuratomi
On behalf of the entire Ansible open source community, we are very happy to announce that Ansible 2.4.3 has been released! This release includes many bugfixes to the 2.4 codebase. For full details, please see the Changelog: https://github.com/ansible/ansible/blob/stable-2.4/CHANGELOG.md As alwa

[ansible-project] Re: Need help about Ansible block syntax

2018-01-31 Thread Malcolm Hussain-Gambles
Notify should go after each of the tasks. You could set a fact in the block then check that and notify afterwards though -- 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

[ansible-project] Re: Item name in task name.

2018-01-31 Thread Malcolm Hussain-Gambles
I don't think you can do that, as the item isn't defined when it prints the name section. I also seem to remember that certain modules,like yum will process the list in one go. Rather than doing two yum installs. -- You received this message because you are subscribed to the Google Groups "Ans

[ansible-project] Re: Item name in task name.

2018-01-31 Thread ZillaYT
Try enclosing the name in double-quotes, e.g., tasks: - name: "Installing {{ item }}" yum: name: "{{ item }}" state: latest with_items: - httpd - firewalld On Monday, January 29, 2018 at 11:02:58 AM UTC-5, Varun Chopra wrote: > > Hi, > > I'm tryi

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

2018-01-31 Thread Malcolm Hussain-Gambles
>From the cli version, try running two commands pwd and ls -l So you can see if it's putting you in the directory you think you are -- 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] Using Ansible module asa_config system context saving

2018-01-31 Thread Rob Harp
#This play will log into the admin context and change to the system context to update users. Does it automatically save? There is a save: option i can use under asa_config: but does it save the admin context, system context, both, or none? Im updating user accounts on all contexts including sys

Re: [ansible-project] Line too long, need to break over two lines -

2018-01-31 Thread Kai Stian Olstad
On Wednesday, 31 January 2018 18.36.20 CET richard d wrote: > I'm using yamllint to validate my code and its telling me my line is too > long - read many posts online, and can't understand how to fix this. You don't need to fix it, Ansible doesn't care about how long a lines is. > - name: copy

[ansible-project] Urgent need SQL server (Los Angeles,CA) 06+Months

2018-01-31 Thread azeem sqldeveloper
Please share profile on az...@nestarit.com Direct contact number: *(216) 640-7259* Dear IT Professional, Wishes for the Day !!! Hope you are doing great. This is *Mohammed Azeem* from *NESTAR TECHNOLOGIES/ AESPATECH LLC* and we have an immediate requirement with our client where we have exc

[ansible-project] Line too long, need to break over two lines -

2018-01-31 Thread richard d
I'm using yamllint to validate my code and its telling me my line is too long - read many posts online, and can't understand how to fix this. - name: copy multiple items into multiple locations copy: src: "{{ item.src }}" dest: "{{ item.dest }}" owner: "{{ item.owner }}"

[ansible-project] Re: Need help about Ansible block syntax

2018-01-31 Thread ZillaYT
block does not support ALL the features of a simple task so this may be your issue. For example, it may not support notify, but you'll need to look at this. On Wednesday, January 31, 2018 at 10:29:00 AM UTC-5, JiElPe-Fr38 wrote: > > Dear all, > > I am quite new to Ansible and try to "make a tour

[ansible-project] Need help about Ansible block syntax

2018-01-31 Thread JiElPe-Fr38
Dear all, I am quite new to Ansible and try to "make a tour"... I am using ansible 2.4.2.0 with cygwin64 on Win7. I am currently make a personal training and find that I could use a block to "enclose" (ok, perhaps wrong term) a couple of task that have some common "properties" (like become_use

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

2018-01-31 Thread Patrick Hunt
I was able to use another module to solve this issue. I setup a play using the module vmware_guest_find . The play I used is: - hosts: localhost vars_prompt: - name: username prompt: "VCenter username" priv

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

2018-01-31 Thread jean-yves
31 janvier 2018 14:31 "GornerM" a écrit: ansible.cfg can be found in the current directory, so my test ansible project currently looks like: | |- ansible.cfg |- hosts |- test2.yml |- roles - Juniper.junos - library - juniper_junos_facts.py All of this files also are located in jenkins works

[ansible-project] Automating Software Installation (issues using win_shell module)

2018-01-31 Thread MA
Hello, I'm trying to automate the installation of Visual Studio, and I am using the unattended installation command provided by Microsoft: vs_community.exe --installPath C:\minVS --add Microsoft.VisualStudio.Workload.CoreEditor --quiet --norestart Running this command from the target machine d

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

2018-01-31 Thread GornerM
ansible.cfg can be found in the current directory, so my test ansible project currently looks like: | |- ansible.cfg |- hosts |- test2.yml |- roles - Juniper.junos - library - juniper_junos_facts.py All of this files also are located in jenkins workspace. -- You received this message becau

[ansible-project] ansible azure_rm_networkinterface subnet from other resource group

2018-01-31 Thread Tim Qin
I m trying to create a virtual network in resource group A and a network interface in resource group B where the subnets and virtual network is from resource group A. *azure_rm_networkinterface *seems can only lookup subnet from the virtual network within the same resource group base on the cod

[ansible-project] Re: WinRM error: ntlm: (u'http', u'Bad HTTP response returned from server. Code 500')

2018-01-31 Thread SrinivasaRao Nallapati
Hello, Is this resolved. I am also getting same issue. Please help me . Using module file /usr/local/lib/python2.7/dist-packages/ansible-2.4.1.0-py2.7.egg/ansible/modules/windows/win_ping.ps1 ESTABLISH WINRM CONNECTION FOR USER: l...@apac.com on PORT 5986 TO WINRM CONNECT: transport=ntlm

[ansible-project] Re: WinRM error: ntlm: (u'http', u'Bad HTTP response returned from server. Code 500')

2018-01-31 Thread SrinivasaRao Nallapati
Hello, -- 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@go

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

2018-01-31 Thread jean-yves
31 janvier 2018 12:02 "GornerM" a écrit: > Yes, juniper_junos_facts is external module. > The roles directory is contained Juniper.junos role > (https://github.com/Juniper/ansible-junos-stdlib) > > --- > > Here is my ansible configuration: > > [defaults] > > inventory=./hosts > > remote_

[ansible-project] Re: Not able to change runlevel in /etc/inittab using aix_inittab module

2018-01-31 Thread Anurag Berdia
Guys, Appreciate any help on this. Thanks, Anurag Berdia On Thursday, 18 January 2018 18:54:46 UTC+5:30, Anurag Berdia wrote: > > Hi, > > I am new to Ansible and this is my first post on this community. > I am trying to use "aix_inittab" module and this is how my playbook looks > like: > > - na

[ansible-project] vault-id and multiple password files in ansible.cfg

2018-01-31 Thread kompastver
Hi, We're using vault files encrypted with multiple vault-id in our projects. Everything works fine when we do something like: ansible vault --vault-id generic@~/.ansible/generic-password --vault-id prod@~/.ansible/prod-password ... But it's not convenient way to pass password files for each vaul

[ansible-project] dns_settings in azure_rm_networkinterface

2018-01-31 Thread Tim Qin
For the return value in module azure_rm_networkinterface we could have dns_settings as an output: 'dns_settings': {'dns_servers': [], 'internal_fqdn': None, 'internal_dns_name_label': None, 'applied_dns_servers': []} But how can we set these dns_settings options in the azure_rm_networkinterface

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

2018-01-31 Thread GornerM
Yes, juniper_junos_facts is external module. The roles directory is contained Juniper.junos role ( https://github.com/Juniper/ansible-junos-stdlib ) ---

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

2018-01-31 Thread jean-yves
31 janvier 2018 09:17 "GornerM" a écrit: I've received the same error result with or without ansible plagin. Here is the last jenkins output log with ansible plugin: [Job_gitlab_ansible_2] $ /usr/bin/ansible-playbook test2.yml -i hosts -f 5 --private-key /tmp/ssh1443101965150836988.key

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2018-01-31 Thread riturajb
I am facing same error although using a command module - in the with_items. snippet below. I turned off gathering of facts. I do not see any file related to facts on Ubuntu 16.04 /etc/ansible. Please let me know what is the fix/workaround. - name: Install SSL command: chdir="/usr/local/down

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

2018-01-31 Thread GornerM
I've received the same error result with or without ansible plagin. Here is the last jenkins output log with ansible plugin: [Job_gitlab_ansible_2] $ /usr/bin/ansible-playbook test2.yml -i hosts -f 5 --private-key /tmp/ssh1443101965150836988.key -u root PLAY [GET] *

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

2018-01-31 Thread GornerM
I've received the same error result with or without ansible plagin. Here is the last jenkins output log with ansible plugin: [Job_gitlab_ansible_2] $ /usr/bin/ansible-playbook test2.yml -i hosts -f 5 --private-key /tmp/ssh1443101965150836988.key -u root PLAY [GET] *