[ansible-project] Failed to easy_install dnspython to use dig

2019-10-11 Thread Boa Ah
```fatal: [localhost]: FAILED! => {
16:10:06  "changed": false, 
16:10:06  "module_stderr": "/bin/sh: 1: sudo: not found\n", 
16:10:06  "module_stdout": "", 
16:10:06  "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", 
16:10:06  "rc": 127
16:10:06  }
16:10:06  ```

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/22f6c3b9-c537-4bd3-a615-238288015202%40googlegroups.com.


[ansible-project] Failed to easy_install dnspython to use dig

2019-10-11 Thread Boa Ah
Team, my playbook works fine on my MacBook but now am running it with Jenkins 
on Linux instance and it’s throwing me this error. Any hint please?

have my playbook as below and i tried with become: yes as well but no luck. how 
to get around this ?

  - easy_install:
  name: dnspython
  state: present
#become: yes

  - name: Validate DNS record lookup for {{ kubeapi_server }}
debug: msg="{{ lookup('dig', '{{ kubeapi_server }}' )}}"
vars:
  variable: "{{ lookup('dig', '{{ kubeapi_server }}' )}}"
failed_when: not variable
Output:

16:18:07  TASK [team-deploy-validation : easy_install] 
*
16:18:07  [1;30mtask path: 
/home/testuser/jenkins/workspace/run_ansible_playbook/k8s/baremetal/roles/team-deploy-validation/tasks/main.yml:9[0m
16:18:07  Friday 11 October 2019  23:18:07 + (0:00:00.029)   
0:00:02.902  
16:18:07  [0;34mUsing module file 
/usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/language/easy_install.py[0m
16:18:07  [0;34mPipelining is enabled.[0m
16:18:07  [0;34m<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: testuser[0m
16:18:07  [0;34m<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'[0m
16:18:07  [0;31mThe full traceback is:[0m
16:18:07  [0;31mWARNING: The below traceback may

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/00322c30-b384-4bd0-acf9-7febc5a61563%40googlegroups.com.


Re: [ansible-project] State of Multi-Role Repos

2019-10-11 Thread Kai Stian Olstad

On 08.10.2019 20:20, Uriel wrote:

What is the currently supported way of maintaining multi-role git
repositories?  I've been reading around the docs and I'm getting some
contradictory or outdated information.  I was initially looking at the 
new
Collections format for storing and sharing roles but this seems to be 
built
(at least initially) to support getting roles from ansible-galaxy 
directly,

not from some source control system.

Does anyone have any documentation/information using supported methods 
of

interacting with multi-role repos?


At the moment collection is tech preview not recommended for production 
so use ansible-gallaxy instead.


https://galaxy.ansible.com/docs/using/installing.html#installing-multiple-roles-from-a-file

--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7e7d9ed54436b1d826921c428e7ac842%40olstad.com.


[ansible-project] Re: set_fact doesn't work in loop

2019-10-11 Thread Jason Crabtree
Thank you. I'll try the update in my actual script and see how it goes.

I can't do a join since it's not a simple list I'm really trying to turn 
into a simple list. This code seemed to demonstrate the crux of my issue 
though and I'm hoping you provided the solution I needed. 

I'm still trying to understand when  quotes and brackets should be used.

-Jason

On Friday, October 11, 2019 at 1:23:54 PM UTC-7, Jason Crabtree wrote:
>
> Hello,
>
> I'm trying to build a list from data in other lists by looping over lists 
> and using set_fact to build a new list. 
>
> --
> - name: "test list build"
>   hosts: localhost
>   connection: local
>   gather_facts: no
>   become: no
>
>
>   vars:
> location_list:
>   site:
> - portland
> - miami
> - chicago
> item_list: 
>   - nowhere
>
>
>
>   tasks:
>
> - name: "create list"
>   set_fact:
> item_list: '{{ item_list +  [ "{{ item }}" ]  }}'
>   loop: "{{ location_list.site }}"
>
>   
> - name: "display final item_list"
>   debug:
> msg: "{{ item_list }}"
>
> --
>
> I expected the list:
> nowhere
> portland
> miami
> chicago
>
> I got:
> nowhere
> miami
> {{ item }}
> {{ item }}
>
> Can anyone point out what I got wrong or is this just a bug?
>
> Thanks,
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0f930835-f7fb-488a-aa91-5561a3ba7659%40googlegroups.com.


Re: [ansible-project] How to use safe box password authentication RDP and SSH

2019-10-11 Thread Dick Visser
Try something like this in your inventory:

192.168.0.1 ansible_user=root ansible_ssh_common_args='-o
ProxyJump="gateway.intranet"'

On Fri, 11 Oct 2019 at 20:34, Gabriel Silva  wrote:
>
> Good afternoon, how to connect in windows and linux (rdp and ssh) through a 
> gateway (password vault) with ansible.
> Example: To access normally via ssh I use:
> # ssh root@192.168.0.1@gateway.intranet
> This prompts you for the domain username and password, and then the root 
> password.
>
> How can I make ansible connect to servers that need this authentication?
>
> Thanks in advance.
>
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/d2337143-d178-4e55-bc66-4c4c60bd2266%40googlegroups.com.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwOC7hRDjZpLE8AQ5d%2BFE_gYA_oiBMi4aDP-X-M4h8Munw%40mail.gmail.com.


Re: [ansible-project] On my remote host the user install is limited to sudo su -

2019-10-11 Thread Kai Stian Olstad

On 11.10.2019 17:50, Jochen Benke wrote:

On my remote host the user install is limited to sudo su -

/etc/sudoers

%install ALL=(ALL) /bin/su -


Ansible need full sudo or full su access.
It can use a combination of sudo and su like this.


--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e33b820648ef9ce43358e2b8b68d4081%40olstad.com.


Re: [ansible-project] set_fact doesn't work in loop

2019-10-11 Thread Kai Stian Olstad

On 11.10.2019 22:23, Jason Crabtree wrote:

Hello,

I'm trying to build a list from data in other lists by looping over 
lists

and using set_fact to build a new list.

--
- name: "test list build"
  hosts: localhost
  connection: local
  gather_facts: no
  become: no


  vars:
location_list:
  site:
- portland
- miami
- chicago
item_list:
  - nowhere



  tasks:

- name: "create list"
  set_fact:
item_list: '{{ item_list +  [ "{{ item }}" ]  }}'
  loop: "{{ location_list.site }}"


You can't use {{ }} inside {{ }} since you are already in template mode.
So use this instead

  item_list: '{{ item_list +  [ item ] }}'


But you can solve this a lot faster without a loop with the union filter

  - name: "create list"
set_fact:
  item_list: '{{ item_list | union(location_list.site) }}'


--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7cf93ac5be314fd34f85eddedd788859%40olstad.com.


[ansible-project] set_fact doesn't work in loop

2019-10-11 Thread Jason Crabtree
Hello,

I'm trying to build a list from data in other lists by looping over lists 
and using set_fact to build a new list. 

--
- name: "test list build"
  hosts: localhost
  connection: local
  gather_facts: no
  become: no


  vars:
location_list:
  site:
- portland
- miami
- chicago
item_list: 
  - nowhere



  tasks:

- name: "create list"
  set_fact:
item_list: '{{ item_list +  [ "{{ item }}" ]  }}'
  loop: "{{ location_list.site }}"

  
- name: "display final item_list"
  debug:
msg: "{{ item_list }}"

--

I expected the list:
nowhere
portland
miami
chicago

I got:
nowhere
miami
{{ item }}
{{ item }}

Can anyone point out what I got wrong or is this just a bug?

Thanks,

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/df87f108-eeae-4228-adb9-86538aabe0fd%40googlegroups.com.


[ansible-project] How to use safe box password authentication RDP and SSH

2019-10-11 Thread Gabriel Silva
Good afternoon, how to connect in windows and linux (rdp and ssh) through a 
gateway (password vault) with ansible.
Example: To access normally via ssh I use:
# ssh root@192.168.0.1@gateway.intranet
This prompts you for the domain username and password, and then the root 
password.

How can I make ansible connect to servers that need this authentication?

Thanks in advance.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d2337143-d178-4e55-bc66-4c4c60bd2266%40googlegroups.com.


[ansible-project] On my remote host the user install is limited to sudo su -

2019-10-11 Thread Jochen Benke


On my remote host the user install is limited to sudo su -

/etc/sudoers

%install ALL=(ALL) /bin/su -

--> hosts
[ibmcloud_msbms]
ibmcloud_msbms-01 ansible_port=22 ansible_host=192.168.0.24 
ansible_user=install root_path=/root os=redhat ansible_sudo_pass=x

--> playbook

   - name: "iotmsinstallinstall - all MSB runtimes."
   hosts: all
   pre_tasks: 
  - include_vars:
  file: inventories/common/vars.yml
  roles:
  - iotmsinstall
   
--> task

   - name: "iotmsinstall - create iot messagesight group"
   group:
   name: "{{ common.iotms.group }}"
   gid: "{{ common.iotms.gid }}"
   become: yes
   become_user: root
   become_method: su

when I now run ansible-playbook with

ansible-playbook -i inventories/environments/hosts -vvv --limit 
ibmcloud_msbms-01 01_msb_iotms_install.yml

Result:

TASK [iotmsinstall : iotmsinstall - create iot messagesight group] 
**
task path: 
/root/msb/msb_ms_config/msb_ms_install/roles/iotmsinstall/tasks/main.yml:14
<169.62.188.24> ESTABLISH SSH CONNECTION FOR USER: install
<169.62.188.24> SSH: EXEC ssh -C -o ControlMaster=auto -o 
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o 'User="install"' -o ConnectTimeout=10 -o 
ControlPath=/root/.ansible/cp/996142a655 169.62.188.24 '/bin/sh -c 
'"'"'echo ~install && sleep 0'"'"''
<169.62.188.24> (0, '/home/install\n', '')
<169.62.188.24> ESTABLISH SSH CONNECTION FOR USER: install
<169.62.188.24> SSH: EXEC ssh -C -o ControlMaster=auto -o 
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o 'User="install"' -o ConnectTimeout=10 -o 
ControlPath=/root/.ansible/cp/996142a655 169.62.188.24 '/bin/sh -c '"'"'( 
umask 77 && mkdir -p "echo 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726" && 
echo ansible-tmp-1570807943.55-244746696635726="echo 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726" ) && 
sleep 0'"'"''
<169.62.188.24> (0, 
'ansible-tmp-1570807943.55-244746696635726=/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726\n',
 
'')
Using module file 
/usr/lib/python2.7/site-packages/ansible/modules/system/group.py
<169.62.188.24> PUT /root/.ansible/tmp/ansible-local-8491uuQPyt/tmpjP3jQp 
TO 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726/AnsiballZ_group.py
<169.62.188.24> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o 
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o 'User="install"' -o ConnectTimeout=10 -o 
ControlPath=/root/.ansible/cp/996142a655 '[169.62.188.24]'
<169.62.188.24> (0, 'sftp> put 
/root/.ansible/tmp/ansible-local-8491uuQPyt/tmpjP3jQp 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726/AnsiballZ_group.py\n',
 
'')
<169.62.188.24> ESTABLISH SSH CONNECTION FOR USER: install
<169.62.188.24> SSH: EXEC ssh -C -o ControlMaster=auto -o 
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o 'User="install"' -o ConnectTimeout=10 -o 
ControlPath=/root/.ansible/cp/996142a655 169.62.188.24 '/bin/sh -c 
'"'"'chmod u+x 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726/ 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726/AnsiballZ_group.py
 
&& sleep 0'"'"''
<169.62.188.24> (0, '', '')
<169.62.188.24> ESTABLISH SSH CONNECTION FOR USER: install
<169.62.188.24> SSH: EXEC ssh -C -o ControlMaster=auto -o 
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o 'User="install"' -o ConnectTimeout=10 -o 
ControlPath=/root/.ansible/cp/996142a655 -tt 169.62.188.24 '/bin/sh -c 
'"'"'su root -c '"'"'"'"'"'"'"'"'/bin/sh -c 
'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'echo 
BECOME-SUCCESS-lsokftpdokaikbgqbyxfswoeislvcsfg ; /usr/bin/python 
/home/install/.ansible/tmp/ansible-tmp-1570807943.55-244746696635726/AnsiballZ_group.py'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"''"'"'"'"'"'"'"'"'
 
&& sleep 0'"'"''
fatal: [ibmcloud_msbms-01]: FAILED! => {
"msg": "Timeout (12s) waiting for privilege escalation prompt: "
}
ISSUE TYPE 
   
   - Bug Report or Question

ANSIBLE VERSION 

ansible 2.8.5
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible pyth

[ansible-project] looping through azure_rm_networkinterface_facts

2019-10-11 Thread Gregory Edigarov
Hello,

Supposing I retrive information about interfaces like  this:

 - name: Get network interface details newly created hosts
azure_rm_networkinterface_facts:
  resource_group: "{{ rg_name }}"
  name: "{{ item }}01"
register: azure_networkinterfaces
loop:
  -  "{{ env }}-sw1-vm"
  -  "{{ env }}-sw2-vm"
  -  "{{ env }}-sw3-vm"


how can I get their private IP's in a loop?

i.e. I want then add them to dns zone looping through something like: 

loop:
  - sw1
  - sw2
  - sw3

or something like that, and in the zone there should be 
 sw1 in a 10.0.0.4 
 sw2 in a 10.0.0.5
 sw3 in a 10.0.0.6



so i only need the idea of how to loop through such an object

thank you. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1b2fab86-f061-400d-a9a5-080c4fba085f%40googlegroups.com.


[ansible-project] K8s kubectl module that does all the get commands

2019-10-11 Thread Boa Ah
Team,
Is there a K8s kubectl module that does all the get commands ? Below one does 
not show ifnit does kubectl get..


https://docs.ansible.com/ansible/latest/modules/k8s_module.html

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3d73eda0-e863-42e2-bbd0-81e72260c01f%40googlegroups.com.


Re: [ansible-project] skip_reason": "Conditional result was False".

2019-10-11 Thread Srinivas Naram
Hi Manish,

I was facing same issue yesterday. To troubleshoot the issue I have
gathered the facts and observed that ansible_processor kind of variables
are list and have to be referenced with .0 or .1

try this out

ansible_processor. *0*


On Fri, Oct 11, 2019 at 4:07 PM Manish Kumar 
wrote:

> Hi All,
>
> I am trying to compare the output marked in yellow and proceed if
> condition is true   but it is skipping with skip_reason": "Conditional
> result was False".
>
> Please let me know how it can be achieved .
>
> ---
> - hosts: localhost
>   tasks:
>   - name: System details
> debug: msg="{{ item }}"
> with_items:
> - "{{ ansible_processor }}"
> - "{{ ansible_processor_cores }}"
> register: out
>   - name: verify
> debug: msg="passed"
> when: ansible_processor=="Intel(R) Xeon(R) Platinum 8175M CPU @
> 2.50GHz"
>
>
> ok: [localhost] => (item=None) => {
>
> "msg": "Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz"
>
> }
>
> ok: [localhost] => (item=None) => {
>
> "msg": 1
>
> }
>
>
>
> TASK [verify]
> **
>
> task path: /U01/automation/playbooks/Esm_java.yml:10
>
> skipping: [localhost] => {
>
> "skip_reason": "Conditional result was False"
>
> }
>
> META: ran handlers
>
> META: ran handlers
>
>
>
> PLAY RECAP
> *
>
> localhost  : ok=2changed=0unreachable=0
>  failed=0
>
>
>
> Thanks,
>
> Manish
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/941ab553-52b8-4661-8d0c-da9033d0b359%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG-N3P6OCAzVitc_qb06aAY%2BHLD1zcvXAb%3DNzyArD8eaqsZUsg%40mail.gmail.com.


[ansible-project] skip_reason": "Conditional result was False".

2019-10-11 Thread Manish Kumar
Hi All,

I am trying to compare the output marked in yellow and proceed if condition 
is true   but it is skipping with skip_reason": "Conditional result was 
False".

Please let me know how it can be achieved .

---
- hosts: localhost
  tasks:
  - name: System details
debug: msg="{{ item }}"
with_items: 
- "{{ ansible_processor }}"
- "{{ ansible_processor_cores }}"
register: out
  - name: verify
debug: msg="passed"
when: ansible_processor=="Intel(R) Xeon(R) Platinum 8175M CPU @ 
2.50GHz" 


ok: [localhost] => (item=None) => {

"msg": "Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz"

}

ok: [localhost] => (item=None) => {

"msg": 1

}

 

TASK [verify] 
**

task path: /U01/automation/playbooks/Esm_java.yml:10

skipping: [localhost] => {

"skip_reason": "Conditional result was False"

}

META: ran handlers

META: ran handlers

 

PLAY RECAP 
*

localhost  : ok=2changed=0unreachable=0   
 failed=0   



Thanks,

Manish

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/941ab553-52b8-4661-8d0c-da9033d0b359%40googlegroups.com.


[ansible-project] aws_resource_actions is not giving expected outcome

2019-10-11 Thread arshad zameer
I have a playbook with several roles to be performed on AWS instances. I 
want to get the list of all aws resource actions used on the ec2 modules so 
i can create specific IAM role with those permisions. But i'm unable to get 
the specified output as per the documentation. I have done the changes as 
per the documentaion. Modified the ansible.cfg to

[defaults]
callback_whitelist = aws_resource_actions

Also on the playbook i have given the group as follow- name: Get instance 
details and attach ebs volumes

  hosts: some hosts
  module_defaults:
group/aws:
  debug_botocore_endpoint_logs: True
  gather_facts: yes
  roles:
- a_role

Also i have added modified the ec2 task also to add this

- name : Create EBS one
  ec2_vol:
region: "{{ region }}"
instance: "{{ item}}"
device_name: "{{ device }}"
volume_type: "{{ vol_type }}"
volume_size: "{{ vol_size }}"
delete_on_termination: yes
encrypted: yes
debug_botocore_endpoint_logs: yes
tags:
  Name: "{{ vol_name }}"  
  register: EBSdetails

Can anyone point me out what i have missed?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c2efa602-587c-489d-a746-99cf1f5bca8e%40googlegroups.com.


[ansible-project] Re: Ansible V2.7 - kerberos: authGSSClientStep() failed:

2019-10-11 Thread Sushena Parthasarathy
Hi Jordan,
 I have tried all the possibilities and your suggestions as well 
still the same error for windows alone. Is there any work around for this?

*N.B:* I have modified the password before posting it. 

--
Sushena P

On Wednesday, 31 July 2019 04:33:02 UTC+5:30, Jordan Borean wrote:
>
> Part of the Kerberos authentication process is to lookup the remote server 
> in the KDC database (AD database). If it cannot find that server then you 
> will get this error. In this case it will lookup the host using the SPN 
> 'HTTP/gcp-bashost.NORTHIND.INTERNAL' . If you have defined ansible_host for 
> that host then it will be using that hostname as the 2nd part of the SPN.
>
> The fact that you can use kinit to get the credentials shows that your 
> Ansible controller is talking to the domain correctly, this issue is around 
> not being able to lookup your remote host. Make sure;
>
>- You are connecting to the host using the FQDN and not an IP address
>- The remote host is part of the domain
>- If you need to connect with an IP, you can use 
>'ansible_winrm_kerberos_hostname_override' to set the host's FQDN so the 
>SPN lookup works
>
>
> Also you should change your password right now and never share it in a 
> public setting again.
>
> Thanks
>
> Jordan
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ef1652f2-00c3-4f4e-9155-e65023da93c9%40googlegroups.com.