Re: [ansible-project] mail module

2020-09-17 Thread Dick Visser
Post your playbook On Fri, 18 Sep 2020 at 07:53, Prajwal Gowda wrote: > hi team i need one help with the mail module > it is throwing error address family not supported > if anyone know how to send mail when the task failed please help > > thanks > prajwal h g > > > > > > > > > -- > > > You

[ansible-project] mail module

2020-09-17 Thread Prajwal Gowda
hi team i need one help with the mail module it is throwing error address family not supported if anyone know how to send mail when the task failed please help thanks prajwal h g -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Re: windows custom facts help

2020-09-17 Thread jbor...@gmail.com
A further FYI, do not include the | ConvertTo-Json part, just output the hashtable or array directory, the issue has been updated with more information as to why that is. On Thursday, September 17, 2020 at 9:01:23 PM UTC+10 jbor...@gmail.com wrote: > Just an FYI there may be a bug with

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Mauricio Tavares
On Thu, Sep 17, 2020 at 11:59 AM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > > Sorry for asking again end point credentials means windows.. > He meant whatever WIndows user you want ansible to use to login to this win2016 box. > On Thu 17 Sep, 2020, 9:10 PM Kundan Singh, wrote:

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread PRAVEEN KATTULAPALLI
Sorry for asking again end point credentials means windows.. On Thu 17 Sep, 2020, 9:10 PM Kundan Singh, wrote: > Yes these are endpoint credential for user > > > On Thu, Sep 17, 2020, 9:07 PM PRAVEEN KATTULAPALLI < > 159y1a0...@ksrmce.ac.in> wrote: > >> I have one major doubt >> Ansible_user:

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Kundan Singh
Yes these are endpoint credential for user On Thu, Sep 17, 2020, 9:07 PM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > I have one major doubt > Ansible_user: > Ansible_password: > > What does these two commands represent?. > > Do they represent windows credentials or the user

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread PRAVEEN KATTULAPALLI
I have one major doubt Ansible_user: Ansible_password: What does these two commands represent?. Do they represent windows credentials or the user credentials from which you want to ping windows machine. On Thu 17 Sep, 2020, 8:57 PM Kundan Singh, wrote: > Hi > > Insted of root please mention

Re: [ansible-project] Timeout (12s) waiting for privilege escalation prompt WITH PIPELINING

2020-09-17 Thread Dick Visser
Without knowing anything about those scripts, I would try adding/removing items to blob_ssodba_download_keys (so with 3 or 5 items). This can reveal if the issue is with the 4th item - or with the last item. What is the privilege escalation method? I see the string 'oracle' - can it be some

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Kundan Singh
Hi Insted of root please mention administrator And it's password *windows:vars]* *ansible_user=adminstrator* *And check* On Thu, Sep 17, 2020, 8:12 PM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > yes, I did it from command line . i used this command > ansible all -i hosts -m

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Mauricio Tavares
On Thu, Sep 17, 2020 at 10:42 AM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > > yes, I did it from command line . i used this command > ansible all -i hosts -m win_ping. > > got the above error. > I meant running the ping command, no ansible involved, from the command line, as in

[ansible-project] Timeout (12s) waiting for privilege escalation prompt WITH PIPELINING

2020-09-17 Thread Rob Wagner
Hey all - I'm hitting the infamous Timeout (12s) waiting for privilege escalation prompt error but only under specific conditions. The task that fails is a loop: - name: copy files from blob shell: "{{ blob_ssodba_download_working_dir }}/blob_ssodba_download.py {{ item }} {{

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread PRAVEEN KATTULAPALLI
yes, I did it from command line . i used this command ansible all -i hosts -m win_ping. got the above error. On Thu, Sep 17, 2020 at 2:25 PM Mauricio Tavares wrote: > On Thu, Sep 17, 2020 at 10:23 AM PRAVEEN KATTULAPALLI > <159y1a0...@ksrmce.ac.in> wrote: > > > > i got the below error when i

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Kundan Singh
Hi , Please provide the ip address of server in hosts file and then check On Thu, Sep 17, 2020, 8:00 PM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > server16 | UNREACHABLE! => { > "changed": false, > "msg": "basic: HTTPConnectionPool(host='server16', port=5985): Max > retries

[ansible-project] unable to ping windows machine

2020-09-17 Thread PRAVEEN KATTULAPALLI
server16 | UNREACHABLE! => { "changed": false, "msg": "basic: HTTPConnectionPool(host='server16', port=5985): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to 52.168.175.51 timed out. (connect timeout=30)'))", "unreachable": true [windows]

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Mauricio Tavares
On Thu, Sep 17, 2020 at 10:23 AM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > > i got the below error when i am trying to ping windows machine > i have ran that configurepowershell.ps1 power script also and my winrm > service is running successfully nut still facing same issue,

[ansible-project] unable to ping windows machine

2020-09-17 Thread PRAVEEN KATTULAPALLI
*i got the below error when i am trying to ping windows machine * * i have ran that configurepowershell.ps1 power script also and my winrm service is running successfully nut still facing same issue, please give me a solution for this.* *win2016 | UNREACHABLE! => {* *"changed": false, * *

Re: [ansible-project] How to verify all disk size equal

2020-09-17 Thread Antony Stone
On Thursday 17 September 2020 at 15:59:16, Dick Visser wrote: > add those numbers to a list, apply the 'unique' filter, then check the > length. If it is 1, then the numbers were all the same. > If it is greater than 2, then there were differences. I'm a pedant, so I'll suggest that "if it's

Re: [ansible-project] How to verify all disk size equal

2020-09-17 Thread Dick Visser
add those numbers to a list, apply the 'unique' filter, then check the length. If it is 1, then the numbers were all the same. If it is greater than 2, then there were differences. On Thu, 17 Sep 2020 at 14:23, T. JENISHA wrote: > > Hi Team > > I need to verify if all disk size equal > > I have

[ansible-project] How to verify all disk size equal

2020-09-17 Thread T. JENISHA
Hi Team I need to verify if all disk size equal I have n number of disk. I have written a loop that gives size of disk. Now how do I verify all disks are equal size? - name: Check the size of the disk shell: | bootinfo -s "{{ item }}" with_items: "{{

[ansible-project] Re: windows custom facts help

2020-09-17 Thread jbor...@gmail.com
Just an FYI there may be a bug with fact_path that I've opened https://github.com/ansible-collections/ansible.windows/issues/106. I'm not sure if this bug can be easily fixed so stay tuned to that. Another option if you have custom facts is to create your own fact module. They are quite simple

[ansible-project] Re: windows custom facts help

2020-09-17 Thread jbor...@gmail.com
Just try it out and see for yourself. I have placed the following script at C:\Windows\TEMP\facts\my_facts.ps1 with the contents @{ my_custom_fact = 'value' my_complex_custom_fact = @{ hello = 'world' } } | ConvertTo-Json -Compress This script converts a PowerShell hashtable

[ansible-project] Ansible World

2020-09-17 Thread madan gopal
Hello All, I am completely new to Ansible and wanted to start my first baby steps with simple playbook which will help me out in my day-to-day works Problem Statement: To verify remote server uptime both Windows and Linux Solution: Prompt for ServerName and display uptime of the server Linux :

[ansible-project] Ansible-pull issue.

2020-09-17 Thread Nahum Eliash
hello, i have a lab environments with a couple of Linux Ubuntu 18.04, and i'm trying to figure out why ansible-pull command is not working properly. i was viewing a great tutorial on how to build and execute the lab, and how to setup the ansible-pull playbook. when i trigger the ansible-pull

[ansible-project] netbox inventory source: set token in a vault

2020-09-17 Thread High Raccoon
hello. i'm tinkering with netbox inventory source plugin and noticed , that i must set then auth token either in the inventory file, or in a env variable. but i'd rather have it in a vault file. my attempts to import the token variable from an external file (encrypted or not) to inventory.yml

[ansible-project] windows custom facts help

2020-09-17 Thread dmc...@gmail.com
Can anyone point me in the direction of how to setup custom/local facts on Windows please? not just use fact_path... Reading the docs I've found so far, it looks like you can't just have a file with key:value like Linux under the heading [local_facts] for example (unless you can? but setup

[ansible-project] Windows Host Unreachable from Ansible Control Host

2020-09-17 Thread kcdenoy
Hi, I need help with setting up the connection between Ansible control host and a Windows Host. I've been looking around for issues relating to this one, but none seems to solve my issue. I've redacted some sensitive info here. Here's the setup of Ansible control host, *OS:* Ubuntu 16.04