[ansible-project] Re: cannot find ansible.cfg and /etc/ansible on Mac Mojave

2018-10-09 Thread Ronnie10
Thanks! I have solved it by creating it manually. On Wednesday, 10 October 2018 03:02:10 UTC+8, bill paxton wrote: > > Here's how I solved this with a task: > https://pastebin.com/6t4xrc2W > > On Thursday, October 4, 2018 at 4:24:17 AM UTC-5, Ronnie10 wrote: >> >> Hi there, >> >> I installed ansi

[ansible-project] Re: cannot find ansible.cfg and /etc/ansible on Mac Mojave

2018-10-09 Thread bill paxton
Here's how I solved this with a task: https://pastebin.com/6t4xrc2W On Thursday, October 4, 2018 at 4:24:17 AM UTC-5, Ronnie10 wrote: > > Hi there, > > I installed ansible 2.6.5 using pip, however I could find ansible.cfg and > /etc/ansible folder in my macbook, I tried to create my own /etc/ansi

Re: [ansible-project] strange error message from file lookup plugin

2018-10-09 Thread Brian Coca
I'm not sure i understand exactly what you are expecting, but in newer version of ansible you can control lookup errors https://docs.ansible.com/ansible/latest/plugins/lookup.html#using-lookup-plugins -- -- Brian Coca -- You received this message because you are subscribed to the Googl

[ansible-project] ios_facts failing to populate all interfaces (edit and running-config) #44463

2018-10-09 Thread bill paxton
ios_facts failing to populate all interfaces #44463 Any chance this issue is being addressed? Its been over a month since OP. Thanks Bill -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving e

[ansible-project] Ansible 2.7 - changes to python library look-up ?

2018-10-09 Thread Andy Eff
Hi all, A quick question as I'm slightly knee-deep in troubleshooting an upgrade to Ansible 2.7, but did the way searching for python libraries / site-package directories change, specifically with regard to the Azure cloud modules? As a quick test, I'm in a virtualenv with Ansible 2.7 installed

[ansible-project] Re: Continuous patching for large build pool

2018-10-09 Thread bglowacki
I have opened a request for an integrated enhancement with Ansible: https://github.com/ansible/ansible/issues/46649 However, Kai Stian Olstad solution is a good work around, in the meantime. On Friday, October 5, 2018 at 1:59:05 PM UTC-7, bglowacki wrote: > > I'm working on a project to perform

[ansible-project] Re: Ansible ssh fails to connect to host via ssh. Permission denied - Raw ssh works

2018-10-09 Thread Fabio Gomes Sakiyama
Hi Chen, I manage to solve the problem. I need to pass the public key of a different user. In addition, I changed the way to connect to the VMs, since I am using openstack, I configured ansible to use the keypair to connect. Thanks Em segunda-feira, 8 de outubro de 2018 23:47:35 UTC-3, chenchi

[ansible-project] Re: Continuous patching for large build pool

2018-10-09 Thread bglowacki
Unfortunately, in my experience the serial keyword results in 3 concurrent plays (using your example), but all plays must be complete before moving on to the next 3. :( On Monday, October 8, 2018 at 5:38:48 PM UTC-7, chenchireddy guvvala wrote: > > Use the serial keyword in Playbook, Like below

Re: [ansible-project] become or sudo

2018-10-09 Thread Rajendra Rawat
Thanks Kai for the valuable information you shared with me. Thanks & Regards Rajendra Rawat On Sat, 6 Oct 2018 at 12:50, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 05.10.2018 08:14, Rajendra Rawat wrote: > > Output: ansible xyz.com -a id > > xyz.com | SUCCESS | rc=0 >> >

[ansible-project] Re: Ansible nagios module, command action with parameters

2018-10-09 Thread Brad Van Orden
Have you tried: - name: force-nagios-check nagios: action: command command: SCHEDULE_FORCED_HOST_SVC_CHECKS;{{inventory_hostname}};{{ ansible_date_time.epoch}} see if that works? This module might not have that option. Another option is to just use the command module? On Tuesday,

Re: [ansible-project] Re: Ability to create Azure automation account via Ansible

2018-10-09 Thread Brad Van Orden
OK. Haven't touched Windows Server for a couple of years. :) I searched the azure modules in ansible and like you, did not see anything directly related. My suggestion: since you already have a poweshell command to create the account, use the win_command module to run the powershell command w

Re: [ansible-project] Re: Ability to create Azure automation account via Ansible

2018-10-09 Thread ameya agashe
Hi Brad, Appreciate your prompt response.Azure is a public cloud offering from Microsoft. WIthout Ansible, I would create the account with "Azure PowerShell" with the below command.: New-AzureRmAutomationAccount ` -ResourceGroupName "${resource_grp_name_fred_nxt_old_prod}" ` -Name "${azure_automa

[ansible-project] Ansible nagios module, command action with parameters

2018-10-09 Thread Willem D'Haese
Hello, I need to schedule a forced service check for all services on a Nagios host. This is possible with the 'SCHEDULE_FORCED_HOST_SVC_CHECKS' command. https://assets.nagios.com/downloads/nagioscore/docs/externalcmds/cmdinfo.php?command_id=130 The Ansible nagios module seems to have a 'command

[ansible-project] Re: Ability to create Azure automation account via Ansible

2018-10-09 Thread Brad Van Orden
No, I have no idea what azure is. So, can't offer any help. You have not provided any details. Possibly describe what the process is for creating an azure account without ansible and what problems you are having with using ansible. Give us the steps you have attempted so far. On Monday, O