[ansible-project] Re: Use of synchronize ask a password

2017-11-16 Thread lidor . ettinger
There are some documents or example that you can forward me in order to 
understand how should i do that

thanks

On Thursday, 16 November 2017 22:53:39 UTC+1, lidor.e...@gmail.com wrote:
>
> Hi there,
>
> I'm using a synchronize task:
> http://docs.ansible.com/ansible/latest/synchronize_module.html
>
> - synchronize:
> src: some/relative/path
> dest: /some/absolute/path
>
> So far so good but i expected that Ansible won't ask me for entering a 
> password and that what's happening.
>
> How can i explicit the password or supply it within the task?
>
> Thx 
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e90b43c0-fdde-458a-9d8e-3082e5bd1f83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible network

2017-11-16 Thread SK
Hi,

I am using Ansible for the first time to test basic commands on Network 
devices.  When I run the playbook, I am encountering errors even though the 
configuration looks normal.  Below is the OS of my source machine where 
Ansible is installed:

CentOS Linux release 7.3.1611 (Core)

My ansible version is below:

ansible 2.3.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-11)]

the config.yml file I am using to test is below:

---
  - name: DEPLOY SNMP CONFIGURATIONS
hosts: mgmt
gather_facts: False
connection: local
vars_files:
- creds.yml

tasks:

  -name: configure provider
   set_fact:
 provider:
   username: "{{username}}"
   password: "{{password}}"
   host: "{{inventory_hostname}}"

  - name: DEPLOY SNMP COMMANDS WITHIN PB
ios_config:
  commands:
- snmp-server community Test1ng rw

The content of creds.yml file is below:

username: x
password: x

grep inventory ansible.cfg
inventory  = /etc/ansible/inventory

The content of the inventory file is below
[mgmt]
sltnrmgmt

Error message I am noticing:

ansible-playbook - configs.yml
Using /etc/ansible/ansible.cfg as config file
ERROR! Syntax Error while loading YAML.


The error appears to have been in '/etc/ansible/configs.yml': line 12, 
column 16, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  -name: configure provider
   set_fact:
   ^ here

*The set_fact seems to be defined the way it should be.  Appreciate any 
help on this.*

Other details I am yet to figure out:

How does Ansible communicate with Network devices by default in version 
2.3?  Do I need to setup any SSH keys on the Cisco Network device?

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a58e6bb6-4e54-4c3c-94cd-faabddad33d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Use of synchronize ask a password

2017-11-16 Thread Kai Stian Olstad

On 16.11.2017 22:53, lidor.ettin...@gmail.com wrote:

I'm using a synchronize task:
http://docs.ansible.com/ansible/latest/synchronize_module.html

- synchronize:
src: some/relative/path
dest: /some/absolute/path

So far so good but i expected that Ansible won't ask me for entering a
password and that what's happening.

How can i explicit the password or supply it within the task?


You can't, you need to use keys.

--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/da3187231f3d6ffc968d83f31bfd242c%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Install Java using its source :: Ansible

2017-11-16 Thread luke . devon80
Thank you all , All your guides are helpful and I was able to achieve my 
requirement.

Regards
Luke.
 

On Wednesday, November 15, 2017 at 2:34:45 PM UTC+8, Soniya panwar wrote:
>
> Hello,
>>
>
> Above provided playbook will set the Classpath temporaily. 
> If you wish to make the entry persistent, you will have to use below task  
> in place of  "setup the java class path" task:
>
>   - name: setup the java Classpath permanently 
> lineinfile:
>  path: ~/.bashrc
>  line: 'export CLASSPATH="/java":"/java":"${CLASSPATH}"' 
>
> Thanks 
> Soniya
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/01fed89f-3606-4fc6-9f4b-66c2708806ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower playbook credential question

2017-11-16 Thread Qingyu Hu
Hey gang

New kid on the block here. Not sure if this is the right forum to ask 
questions regarding ansible towers, I know I can contact support and I have 
emailed them but I was hoping there are wiser gurus out here that can help 
answer my question.


So the question is this: I am demoing tower for my company and tower has 
it's encrypted credential in the database which I really like the idea of. 
I am building a simple provision VM play book but vmware_guest requires the 
username and password entry. So how do I reference/use my stored credential 
in ansible tower database? I have selected the correct credential in the 
template for the job but the error is saying I must have user name and 
password defined in the playbook. Is there a variable in the playbook where 
I can reference tower's password? 

only thing I found online is to encrypt the password in vault and program 
the vault password and use that in the template. That's just lame because 
now I got 2 place to manage password and vault is less secure because there 
is only 1 password and no RBAC.

thanks in advance!

chang


-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0d984d36-4f80-4dca-b53b-d46b09d3c361%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: ansible2.4: playbook group_vars/* no longer loaded into hostvars

2017-11-16 Thread Rich Fletcher
I see this behavior too (in 2.4.1).  On searching, one tends to find a lot 
of "Ansible used to resolve group_vars and host_vars from the current 
directory; now it doesn't; don't do that".  But that isn't my problem, or 
yours I wager.

My suspicion is that it seems to be a problem with playbook-adjacent 
(group|host)_vars files that only is seen when specifying a inventory 
directory (additionally, possibly, specifying inventory files in a 
subdirectory). Single inventory files often tend to be in the same 
directory as playbooks, so it muddies the water sometimes when testing 
this.  It almost seems like ever since support was added for 
(group|host)_vars files adjacent to inventory, the playbook-adjacent setup 
is not tested as much (despite the best practices page and other 
documentation).



On Wednesday, November 15, 2017 at 4:29:25 PM UTC-8, Braňo Žarnovičan wrote:
>
> Hi,
>
> upgrade-ing to Ansible 2.4, I have noticed that variables defined in 
> 'group_vars/all.yaml', 'group_vars/groupX.yaml' no longer appear in 
> 'hostvars'. I'm talking about referencing hostvars of _another_ host from 
> currently executing one.
>
> I have the following directory structure:
> .
> ├── env
> │   ├── dev
> │   │   ├── group_vars
> │   │   │   └── all.yaml
> │   │   └── inventory
> │   └── prod
> │   ├── group_vars
> │   │   └── all.yaml
> │   └── inventory
> ├── group_vars
> │   └── all.yaml
> └── site.yaml
>
> Only the variables defined at "inventory" level group_vars propagate to 
> hostvars. This behavior has changed between 2.3-2.4.
>
> In Ansible 2.3, if I needed a variable in hostvars to be define for all 
> environments, I would put it to 'group_vars/all.yaml'. Now I have to 
> duplicate it to all inventory's group_vars, which is .. suboptimal.
>
> Q: is there any place (in Ansible2.4) where you could define "inventory 
> variable defaults", common for all environments/inventories ??
>
> Regards,
>
> BranoZ
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4d220577-5808-4c56-93af-0115dd7139b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] basic connection to windows with WinRM failing, need a clue.

2017-11-16 Thread Steven Pollock
Good catch.

The root issue here is http, must be https or the windows trustedhost rules
come into play.

I got it to work with https and a self-signed cert.


Regards,

-Steve

(415) 320-1102 

<º(((><<º(((><   <º(((><

On Thu, Nov 16, 2017 at 3:50 PM, Matt Martz  wrote:

> Your curl command is returning a 401 Unauthorized.  That is not successful.
>
>
> On Thu, Nov 16, 2017 at 5:03 PM Jackson Pollock 
> wrote:
>
>> First time trying to get some windows automation going, I must be missing
>> something. Installed winrm & powershell via the ansible provided scripts
>> from: http://docs.ansible.com/ansible/latest/intro_windows.
>> html#windows-system-prep
>>
>> attempting basic auth only, this is ansible 2.5.0 (latest)
>>
>> this works just fine:
>> *curl -vk -d "" -u "tmp:scout" http://10.80.180.41:5985/wsman
>>  *
>>
>> * Trying 10.80.180.41...
>>
>> * Connected to 10.80.180.41 (10.80.180.41) port 5985 (#0)
>>
>> * Server auth using Basic with user 'tmp'
>>
>> > POST /wsman HTTP/1.1
>>
>> > Host: 10.80.180.41:5985
>>
>> > Authorization: Basic dG1wOjRzY291dA==
>>
>> > User-Agent: curl/7.43.0
>>
>> > Accept: */*
>>
>> > Content-Length: 0
>>
>> > Content-Type: application/x-www-form-urlencoded
>>
>> >
>>
>> < HTTP/1.1 401
>>
>> < Server: Microsoft-HTTPAPI/2.0
>>
>> < WWW-Authenticate: Negotiate
>>
>> < Date: Thu, 16 Nov 2017 22:53:09 GMT
>>
>> < Connection: close
>>
>> < Content-Length: 0
>>
>> <
>>
>> * Closing connection 0Enter code here...
>>
>> Using same everything with ansible:
>>
>> group_vars/windows.yml
>>
>> ansible_user: tmp
>> ansible_password: scout
>> ansible_ssh_port: 5985
>> ansible_connection: winrm
>> ansible_winrm_scheme: http
>> ansible_winrm_server_cert_validation: ignore
>> ansible_winrm_transport: plaintext
>>
>>
>> This fails:
>> *ansible windows -i hosts -m win_ping *
>>
>> 10.80.180.41 | UNREACHABLE! => {
>>
>>  "changed": false,
>>
>>  "msg": "plaintext: the specified credentials were rejected by the
>> server",
>>
>>  "unreachable": true
>>
>> }
>>
>>
>>
>> Credentials are fine as you can see and I have logged in with them, set
>> as "Administrator".
>>
>> Any ideas?
>>
>> 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 post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/ansible-project/ffa9ac6a-35dc-42a3-bd22-
>> c229e1aa76bd%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Matt Martz
> @sivel
> sivel.net
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/MwL4nAbyV5s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CAD8N0v81J9RrwXtQkFLfNf7snON7r
> HcTsk77gxdFsH2vaRagmA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMNWqiuhW0jifwscjk1PeEjvnogBgZDgHroox70aRZj0Vz53Fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] basic connection to windows with WinRM failing, need a clue.

2017-11-16 Thread Matt Martz
Your curl command is returning a 401 Unauthorized.  That is not successful.


On Thu, Nov 16, 2017 at 5:03 PM Jackson Pollock 
wrote:

> First time trying to get some windows automation going, I must be missing
> something. Installed winrm & powershell via the ansible provided scripts
> from:
> http://docs.ansible.com/ansible/latest/intro_windows.html#windows-system-prep
>
> attempting basic auth only, this is ansible 2.5.0 (latest)
>
> this works just fine:
> *curl -vk -d "" -u "tmp:scout" http://10.80.180.41:5985/wsman
>  *
>
> * Trying 10.80.180.41...
>
> * Connected to 10.80.180.41 (10.80.180.41) port 5985 (#0)
>
> * Server auth using Basic with user 'tmp'
>
> > POST /wsman HTTP/1.1
>
> > Host: 10.80.180.41:5985
>
> > Authorization: Basic dG1wOjRzY291dA==
>
> > User-Agent: curl/7.43.0
>
> > Accept: */*
>
> > Content-Length: 0
>
> > Content-Type: application/x-www-form-urlencoded
>
> >
>
> < HTTP/1.1 401
>
> < Server: Microsoft-HTTPAPI/2.0
>
> < WWW-Authenticate: Negotiate
>
> < Date: Thu, 16 Nov 2017 22:53:09 GMT
>
> < Connection: close
>
> < Content-Length: 0
>
> <
>
> * Closing connection 0Enter code here...
>
> Using same everything with ansible:
>
> group_vars/windows.yml
>
> ansible_user: tmp
> ansible_password: scout
> ansible_ssh_port: 5985
> ansible_connection: winrm
> ansible_winrm_scheme: http
> ansible_winrm_server_cert_validation: ignore
> ansible_winrm_transport: plaintext
>
>
> This fails:
> *ansible windows -i hosts -m win_ping *
>
> 10.80.180.41 | UNREACHABLE! => {
>
>  "changed": false,
>
>  "msg": "plaintext: the specified credentials were rejected by the server"
> ,
>
>  "unreachable": true
>
> }
>
>
>
> Credentials are fine as you can see and I have logged in with them, set as
> "Administrator".
>
> Any ideas?
>
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ffa9ac6a-35dc-42a3-bd22-c229e1aa76bd%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Matt Martz
@sivel
sivel.net

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v81J9RrwXtQkFLfNf7snON7rHcTsk77gxdFsH2vaRagmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] basic connection to windows with WinRM failing, need a clue.

2017-11-16 Thread Jackson Pollock
First time trying to get some windows automation going, I must be missing 
something. Installed winrm & powershell via the ansible provided scripts 
from: 
http://docs.ansible.com/ansible/latest/intro_windows.html#windows-system-prep

attempting basic auth only, this is ansible 2.5.0 (latest)

this works just fine:
*curl -vk -d "" -u "tmp:scout" http://10.80.180.41:5985/wsman *

* Trying 10.80.180.41... 

* Connected to 10.80.180.41 (10.80.180.41) port 5985 (#0) 

* Server auth using Basic with user 'tmp' 

> POST /wsman HTTP/1.1 

> Host: 10.80.180.41:5985 

> Authorization: Basic dG1wOjRzY291dA== 

> User-Agent: curl/7.43.0 

> Accept: */* 

> Content-Length: 0 

> Content-Type: application/x-www-form-urlencoded 

> 

< HTTP/1.1 401 

< Server: Microsoft-HTTPAPI/2.0 

< WWW-Authenticate: Negotiate 

< Date: Thu, 16 Nov 2017 22:53:09 GMT 

< Connection: close 

< Content-Length: 0 

< 

* Closing connection 0Enter code here...

Using same everything with ansible:

group_vars/windows.yml

ansible_user: tmp
ansible_password: scout
ansible_ssh_port: 5985
ansible_connection: winrm
ansible_winrm_scheme: http
ansible_winrm_server_cert_validation: ignore
ansible_winrm_transport: plaintext


This fails:
*ansible windows -i hosts -m win_ping *

10.80.180.41 | UNREACHABLE! => { 

 "changed": false, 

 "msg": "plaintext: the specified credentials were rejected by the server", 

 "unreachable": true 

}



Credentials are fine as you can see and I have logged in with them, set as 
"Administrator". 

Any ideas?

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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ffa9ac6a-35dc-42a3-bd22-c229e1aa76bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Use of synchronize ask a password

2017-11-16 Thread lidor . ettinger
Hi there,

I'm using a synchronize task:
http://docs.ansible.com/ansible/latest/synchronize_module.html

- synchronize:
src: some/relative/path
dest: /some/absolute/path

So far so good but i expected that Ansible won't ask me for entering a password 
and that what's happening.

How can i explicit the password or supply it within the task?

Thx 

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4e8d02e2-582f-4b32-b2bc-607521e39b6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] lineinfile append to line?

2017-11-16 Thread leam hall
Trying to edit grub.conf and add a phrase to the kernel lines. 

*Sample stanza:*

title CentOS (2.6.32-696.13.2.el6.x86_64) 
root (hd0,0) 
kernel /vmlinuz-2.6.32-696.13.2.el6.x86_64 ro 
root=/dev/mapper/vg_root-lv_root rd_NO_LUKS rd_LVM_LV=vg_root/lv_root 
LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 console=ttyS0,115200n8 
rd_LVM_LV=vg_root/lv_swap KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb 
quiet rd_NO_DM 
initrd /initramfs-2.6.32-696.13.2.el6.x86_64.img


Ansible playbook stanza that's not working:

- name: edit_grub_conf 
   lineinfile: 
 path: "/tmp/grub.conf" 
 regexp: "^kernel(.*)?" 
 line: 'kernel\1 transparent_hugepage=never' 
 state: present 
 backrefs: true 
 mode: 0666 

Error reported:

TASK [edit_grub_conf] 
** 
fatal: [leviticus]: FAILED! => {"changed": false, "failed": true, 
"module_stderr": "Shared connection to leviticus closed.\r\n", 
"module_stdout": "Traceback (most recent call last):\r\n File 
\"/tmp/ansible_PUtMtv/ansible_module_lineinfile.py\", line 470, in 
\r\n main()\r\n File 
\"/tmp/ansible_PUtMtv/ansible_module_lineinfile.py\", line 462, in main\r\n 
ins_aft, ins_bef, create, backup, backrefs)\r\n File 
\"/tmp/ansible_PUtMtv/ansible_module_lineinfile.py\", line 261, in 
present\r\n bre_m = re.compile(to_bytes(regexp, 
errors='surrogate_or_strict'))\r\n File \"/usr/lib64/python2.6/re.py\", 
line 190, in compile\r\n return _compile(pattern, flags)\r\n File 
\"/usr/lib64/python2.6/re.py\", line 245, in _compile\r\n raise error, v # 
invalid expression\r\nsre_constants.error: nothing to repeat\r\n", "msg": 
"MODULE FAILURE", "rc": 0}


What am I missing?

Thanks!

Leam

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cd225a3f-9df4-4d8b-8f92-e9f77af8658d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: dynamic inventory

2017-11-16 Thread J Davis
For examples on how to use a local inventory script, see the online docs: 
http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f09e4430-9170-427d-b2c5-35823c5e4958%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: dynamic inventory

2017-11-16 Thread J Davis
I've been using the vmware_inventory.py inventory script.

The current vmware_inventory.py script uses pyVmomi. The pyVmomi API 
doesn't support "tags" because that information is in a different database 
than where that API can currently query (as it was explained to me). You 
can use custom attributes though and you would need to set the 
max_object_level=2 or higher to see them.

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f123b4f-80f0-4dea-b771-52407b6c124c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] ansible --list-hosts behaviour

2017-11-16 Thread Brian Coca
Don't take this as cannon, I would like to raise this in core team
meeting, but until then here are my thoughts:

This is a bit complicated, in general a 'host pattern' should return a
group if it matches, if not it should try to match hosts.
That said, that is meant for 'string' patterns not '*glob' patterns,
which should match 'anything that matches', rendering the 2.3
behaviour as 'correct' in my interpretation.

Just to make it clear, for the first case 'string' it should not match
the host 'c1', only the group:

[c1]
hosta
hostb

[dev]
c1

should return:
hosta
hostb


but for the 2nd case '*1' should match both host and group:

hosta
hostb
c1

--
Brian Coca

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7f2L0ztm5zNJRApitf62oVZrKRvko%3Dwf4ha3yz4tJsZGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] dereferensing ec2_vpc_route_table_facts

2017-11-16 Thread SN
Hey gang.   Need some help.   I tried multiple ways, nothing seem to work 
exactly as i need/expect. 
I think my question could be generalized better, but let me try it with my 
exact use case. 
So, for a given VPC, i need to add s3 endpoint to every single route 
table.   
The ec2_vpc_endpoint should accept a list of route_table_ids, but for the 
life of me i can not get them fom ec2_vpc_route_table_facts. 
I tried dumping them into a variable, etc -- nothing seems to work 
In the example below, i do get that list and iterate over it -- which 
creates multiple vpc endpoints.   I need one endpoint, added to multiple 
route tables. 


Any suggestions of how to specify route_table_ids from the 
ec2_vpc_route_table_facts?
Help would be greatly appretiated. 

---

- name: if craated new vpc, use it ID
  set_fact: VPC_ID="{{CREATED_VPC_ID}}"
  when: CREATED_VPC_ID is defined
- name: Get list of all of the routetables in the vpc
  ec2_vpc_route_table_facts:
filters:
  vpc-id: "{{VPC_ID}}"
aws_access_key: "{{AWS_ACCESS_KEY}}"
aws_secret_key: "{{AWS_SECRET_KEY}}"
region: "{{ec2_region}}"
validate_certs: no
  register: vpc_rtbs

#- debug: var=vpc_rtbs
- set_fact:
rtbs_ids:  "{{vpc_rtbs.route_tables}}"
- debug: var="{{item}}"
  with_items: vpc_rtbs.route_tables
- name: Create VPC Endpoint
  ec2_vpc_endpoint:
aws_access_key: "{{AWS_ACCESS_KEY}}"
aws_secret_key: "{{AWS_SECRET_KEY}}"
state: present
region: "{{ec2_region}}"
vpc_id: "{{VPC_ID}}"
service: "com.amazonaws.{{ec2_region}}.s3"
route_table_ids: "{{item.id}}"
  with_items:  "{{vpc_rtbs.route_tables}}"
  register: new_vpc_endpoint

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/10fae768-813b-40fd-8d75-228c4280d27a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] How to disable the admin login page.

2017-11-16 Thread balaji m
Hi, 
I deployed Ansible tower successfully to my kubernetes environment by 
referring to https://github.com/rossedman/ansible-awx-kubernetes and I can 
do the admin stuff using the admin/password. 
But I would like to disable this login page and redirect to home page using 
the authentication/authorization my company uses. How can i do that. 
Please advise. 

Also, I couldn't find Dockerfile that I can use and remove adding any 
authentication using the login page.

Thanks
Balaji
 

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bcfc11d1-e624-4d79-b0c2-a867c79c0935%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible ad-hoc win_ping fails for Windows hosts where direct pywinrm request works

2017-11-16 Thread Jordan Borean
It is showing it tried to connect through ssh because there is a typo in your 
group vars. Change ansible_connexion: winrm to ansible_connection: winrm and it 
should start to use the correct connection plugin.

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/299dd11e-a979-4255-a06a-d498a0ce0b26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Tomcat Role for Windows

2017-11-16 Thread 'J Hawkesworth' via Ansible Project
This is a bit old (jdk8, tomcat8) and has a few assumptions which might not 
be true for your environment (the jdk and tomcat installers are kept on a 
web server refered to as {{build_server}}.  Its two roles one for the jdk 
and one for tomcat.

Definitely some things could be improved - likely you don't need a jdk, 
only a JRE for a start.  The service restart might not be correct and might 
be better as a handler anyway.

Hopefully this is enough to get you started though.

Jon


$:~/roles/win-jdk$ tree -A
.
├── defaults
│   └── main.yml
└── tasks
└── main.yml

2 directories, 2 files
$:~/roles/win-jdk$ cat defaults/main.yml
---
java_major_version: 8
java_minor_version: 73
java_product_id: "{64A3A4F4-B792-11D6-A78A-00B0D0180730}"
$:~/roles/win-jdk$ cat tasks/main.yml
---
# file: roles/win-jdk/tasks/main.yml

# this role adds java to a server.  

# see ../defaults/main.yml for the default versions used
# the defaults can be overriden by setting vars in the playbook, inventory 
or groups

- name: fetch java if needed
  win_get_url: url="{{ build_server }}jdk-{{ java_major_version }}u{{ 
java_minor_version }}-windows-x64.exe" dest="{{ win_deploy_dir }}jdk-{{ 
java_major_version }}u{{ java_minor_version }}-windows-x64.exe" force=no

- name: ensure java installed
  win_package:
name: "Java SE Development Kit {{ java_major_version }} Update {{ 
java_minor_version }} (64-bit)"
path: "{{ win_deploy_dir }}jdk-{{ java_major_version }}u{{ 
java_minor_version }}-windows-x64.exe"
product_id: "{{ java_product_id }}"
state: present
arguments: INSTALL_SILENT=1 AUTO_UPDATE=0 WEB_JAVA=0 WEB_ANALYTICS=0 /s 
/L C:\deployment\log\java-installation.log
# added install options based on options here: 
http://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#table_config_file_options


win-tomcat8$ cat defaults/main.yml
---
tomcat_home: C:\Tomcat8
tomcat_installer: apache-tomcat-8.0.35.exe

$:~roles/win-tomcat8$ cat tasks/main.yml
---
# file: roles/win-tomcat8/tasks/main.yml
# this role adds tomcat 8 if not present
# It also removes default webapps from the installed tomcat 8
# tomcat_home is now picked up from ../defaults/main.yml

- name: fetch tomcat
  win_get_url: url="{{ build_server }}{{ item }}" dest="{{ win_deploy_dir 
}}{{ item }}" force=no
  with_items:
 - "{{tomcat_installer }}"

- name: check for existence of latest tomcat
  win_stat:
path: "{{ tomcat_home }}"
  register: current_tomcat
  
  - name: install tomcat if needed
  win_shell: '{{ win_deploy_dir }}{{ tomcat_installer }} /S /D={{ 
tomcat_home }}'
  when: current_tomcat.stat.exists == false

- name: remove unwanted webapps ROOT manager docs from tomcat
  win_file: 'state=absent path={{ tomcat_home }}\webapps\{{item}}'
  with_items:
- ROOT
- manager
- docs

- name: set tomcat parameters for startup
  win_shell: '{{ tomcat_home }}\bin\tomcat8.exe update --Startup=auto 
--JvmMs=2000 --JvmMx=2000 --JvmOptions="-Dcatalina.home={{ tomcat_home 
}}\;-Dcatalina.base={{ tomcat_home }}\;-Djava.endorsed.dirs={{ tomcat_home 
}}\endorsed;-Djava.io.tmpdir={{ tomcat_home 
}}\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file={{
 
tomcat_home 
}}\conf\logging.properties;-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n;-Xms1500M;-Xmx1500M;"
  
- name: restart tomcat service
  win_service:
name: 'Tomcat 8'
start_mode: auto
state: restarted



On Thursday, November 16, 2017 at 2:46:05 PM UTC, akazi...@gmail.com wrote:
>
> Hello,
>
> I am kind of new to ansible. I did my first steps and got the ping from my 
> control server to a windows machine up and working. So far so good.
> Now I need to install Tomcat from scratch and add later on some patches. I 
> was in the hope to find some example roles on ansible-galaxy but there are 
> non for Tomcat on  Windows.
> So here is my question, does any one know w source for such a role which I 
> can use as a base to develop upon? 
>
> Thank you very much
> Michael
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/388fdeba-335d-4f02-9ba5-045ae3c4517b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Tomcat Role for Windows

2017-11-16 Thread 'J Hawkesworth' via Ansible Project
This is a bit old (jdk8, tomcat8) and has a few assumptions which might not 
be true for your environment (the jdk and tomcat installers are kept on a 
web server refered to as {{build_server}}.  Its two roles one for the jdk 
and one for tomcat.

Definitely some things could be improved - likely you don't need a jdk, 
only a JRE for a start.  The service restart might not be correct and might 
be better as a handler anyway.

Hopefully this is enough to get you started though.

Jon

$:~/roles/win-jdk$ tree -A
.
├── defaults
│   └── main.yml
└── tasks
└── main.yml

2 directories, 2 files
$:~/roles/win-jdk$ cat defaults/main.yml
---
java_major_version: 8
java_minor_version: 73
java_product_id: "{64A3A4F4-B792-11D6-A78A-00B0D0180730}"
$:~/roles/win-jdk$ cat tasks/main.yml
---
# file: roles/win-jdk/tasks/main.yml
# only assumes win-fft-folders role applied to server
# this role adds java to a server.  Intended to replace win-fft-java role
# Currently intended to supply the same java version for use by all FFT 
services.

# see ../defaults/main.yml for the default versions used
# the defaults can be overriden by setting vars in the playbook, inventory 
or groups

- name: fetch java if needed
  win_get_url: url="{{ build_server }}jdk-{{ java_major_version }}u{{ 
java_minor_version }}-windows-x64.exe" dest="{{ win_deploy_dir }}jdk-{{ 
java_major_version }}u{{ java_minor_version }}-windows-x64.exe" force=no

- name: ensure java installed
  win_package:
name: "Java SE Development Kit {{ java_major_version }} Update {{ 
java_minor_version }} (64-bit)"
path: "{{ win_deploy_dir }}jdk-{{ java_major_version }}u{{ 
java_minor_version }}-windows-x64.exe"
product_id: "{{ java_product_id }}"
state: present
arguments: INSTALL_SILENT=1 AUTO_UPDATE=0 WEB_JAVA=0 WEB_ANALYTICS=0 /s 
/L C:\deployment\log\java-installation.log
# added install options based on options here: 
http://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#table_config_file_options


win-tomcat8$ cat defaults/main.yml
---
tomcat_home: C:\Tomcat8
tomcat_installer: apache-tomcat-8.0.35.exe

$:~roles/win-tomcat8$ cat tasks/main.yml
---
# file: roles/win-tomcat8/tasks/main.yml
# this role adds tomcat 8 if not present
# It also removes default webapps from the installed tomcat 8
# tomcat_home is now picked up from ../defaults/main.yml

- name: fetch tomcat
  win_get_url: url="{{ build_server }}{{ item }}" dest="{{ win_deploy_dir 
}}{{ item }}" force=no
  with_items:
 - "{{tomcat_installer }}"

- name: check for existence of latest tomcat
  win_stat:
path: "{{ tomcat_home }}"
  register: current_tomcat
  
  - name: install tomcat if needed
  win_shell: '{{ win_deploy_dir }}{{ tomcat_installer }} /S /D={{ 
tomcat_home }}'
  when: current_tomcat.stat.exists == false

- name: remove unwanted webapps ROOT manager docs from tomcat
  win_file: 'state=absent path={{ tomcat_home }}\webapps\{{item}}'
  with_items:
- ROOT
- manager
- docs

- name: set tomcat parameters for startup
  win_shell: '{{ tomcat_home }}\bin\tomcat8.exe update --Startup=auto 
--JvmMs=2000 --JvmMx=2000 --JvmOptions="-Dcatalina.home={{ tomcat_home 
}}\;-Dcatalina.base={{ tomcat_home }}\;-Djava.endorsed.dirs={{ tomcat_home 
}}\endorsed;-Djava.io.tmpdir={{ tomcat_home 
}}\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file={{
 
tomcat_home 
}}\conf\logging.properties;-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n;-Xms1500M;-Xmx1500M;"
  
- name: restart tomcat service
  win_service:
name: 'Tomcat 8'
start_mode: auto
state: restarted





On Thursday, November 16, 2017 at 2:46:05 PM UTC, akazi...@gmail.com wrote:
>
> Hello,
>
> I am kind of new to ansible. I did my first steps and got the ping from my 
> control server to a windows machine up and working. So far so good.
> Now I need to install Tomcat from scratch and add later on some patches. I 
> was in the hope to find some example roles on ansible-galaxy but there are 
> non for Tomcat on  Windows.
> So here is my question, does any one know w source for such a role which I 
> can use as a base to develop upon? 
>
> Thank you very much
> Michael
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/609bcad2-c18f-40c9-bc66-bc75fb5cd3f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Ansible Install of MS Visual Studio Professional with Updates hanging

2017-11-16 Thread 'J Hawkesworth' via Ansible Project
Nice,  thanks for sharing your solution.

Jon

On Thursday, November 16, 2017 at 5:03:43 PM UTC, Larry Pescatore wrote:
>
> I got it to work by using:
>
> - name: Create C:\TEMP directory
>
>   win_file: path='C:\TEMP' state=directory
>
>
> - name: VS2015 | Download Visual Studio Professional With Updates 
> 2015 Setup
>
>   win_get_url:
>
> url: 'url'
>
> '
>
> dest: 'C:\TEMP\vs_pro.exe'
>
>
> - name: VS2015 | Install Visual Studio Professional With Updates 2015
>
>   raw: 'C:\TEMP\vs_pro.exe /NoRestart /passive /full  /Log 
> C:\TEMP\vs2015_install_log.txt'
>
> On Thu, Nov 16, 2017 at 12:10 AM, 'J Hawkesworth' via Ansible Project <
> ansible...@googlegroups.com > wrote:
>
>> Not something I've done myself but I have a couple of suggestions of 
>> things you can try:
>>
>> check the command line switches for the installer and make sure you are 
>> running the installer in a silent or unattended mode.  If the installer 
>> pops up a window on the windows target, you'll never see it and the 
>> installer will just hang waiting for a mouse click or typing that will 
>> never arrive.
>>
>> try running with 'become'.  This solves a lot of installation woes as I 
>> believe it gets you an interactive user, which you don't usually get via 
>> winrm (its normally just a batch login).
>>
>> see if there's a chocolatey package for the visual studio version you 
>> want to install and use that - if nothing else it will likely save you 
>> having to figure out a bunch of command line switches.
>>
>> Hope this helps,
>>
>> Jon
>>
>>
>> On Tuesday, November 14, 2017 at 5:59:44 PM UTC, lpesc...@google.com 
>> wrote:
>>>
>>> I have a play that installs MS Visual Studio, but it seems to hang. Im 
>>> on Win10 Professional.  
>>> The below is:
>>> 1) My syntax from the playbook
>>> 2) My log file.
>>> Any ideas?
>>>
>>> 1)
>>>
>>>  - name: Install Visual Studio
>>>
>>> win_command: 'C:\Users\pkmbuilder\Desktop\VisualStudio.exe 
>>> --includeRecommended /InstallSelectableItems 
>>> Microsoft.VisualStudio.Workload.NativeMobile
>>>
>>>
>>> 2)
>>>
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i001: Burn v3.7.4906.0, Windows v10.0 
>>> (Build 15063: Service Pack 0), path: 
>>> C:\Users\pkmbuilder\Desktop\VisualStudio.exe, cmdline: 
>>> '--includeRecommended /InstallSelectableItems 
>>> Microsoft.VisualStudio.Workload.NativeMobile /Log 
>>> C:\Users\pkmbuilder\Desktop\vs_install_log.txt -burn.unelevated 
>>> BurnPipe.{32A10A50-1DF3-44F8-A544-88CBF1171745} 
>>> {FAC00AB5-01EF-492C-9366-0D3C0DD4D2C6} 10616'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'SKUFriendlyName' to value 'VS Pro'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'SKUFriendlyID' to value '2000'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'ExtraEditionDisplayName' to value '#loc.slipstream'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'EditionDisplayName' to value 'Professional 2015'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'SKUFullName' to value 'vs_professional_SlipStream_3'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'VSUpdateGeneralVersion' to value '3'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'SkuSpecificHKLMHive' to value 'Software\Microsoft\VisualStudio\14.0'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'RebootRequested' to value '0'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'ExecuteSecondaryInstaller' to value '0'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'BundleProgressKey' to value 
>>> 'Software\Microsoft\VisualStudio\14.0\Setup\vs\professional'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
>>> 'SetupFeedKey' to value 
>>> 'Software\Microsoft\VisualStudio\14.0\Setup\vs\professional'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'LicenseFwlinkId' to value '735044'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'MoreLanguageFwlinkId' to value '659012'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'VSEIPAndPrivacyFwlinkId' to value '658994'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'MinOsLevelFwlinkId' to value '659008'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'SolutionFwlinkId' to value '658995'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'HelpFwlinkId' to value '658996'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'IE10FwlinkId' to value '658998'
>>>
>>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
>>> 'Win81BlockFwlinkId' to value '658999'
>>>
>>> [

Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread Kai Stian Olstad
On Thursday, 16 November 2017 17.06.18 CET stefano.bian...@nap-anywhere.com 
wrote:
> If i use what you suggest i obtained this:
> 
> 
> I was expecting that Enable Secure Backup was underlined in blue as the 
> previous one, which works properly.

That is just your editor not understanding how to syntax hilight stuff and have 
nothing to do with how Ansible understand it.
If you need to have it blue in the editor you can enclose it in quotes.

If you have problem and need help you'll need to run ansible-playbook with -vvv 
and post the result.


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1625307.PzcbLSL3yL%40x1.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Ansible Install of MS Visual Studio Professional with Updates hanging

2017-11-16 Thread 'Larry Pescatore' via Ansible Project
I got it to work by using:

- name: Create C:\TEMP directory

  win_file: path='C:\TEMP' state=directory


- name: VS2015 | Download Visual Studio Professional With Updates 2015
Setup

  win_get_url:

url: 'url'

'

dest: 'C:\TEMP\vs_pro.exe'


- name: VS2015 | Install Visual Studio Professional With Updates 2015

  raw: 'C:\TEMP\vs_pro.exe /NoRestart /passive /full  /Log
C:\TEMP\vs2015_install_log.txt'

On Thu, Nov 16, 2017 at 12:10 AM, 'J Hawkesworth' via Ansible Project <
ansible-project@googlegroups.com> wrote:

> Not something I've done myself but I have a couple of suggestions of
> things you can try:
>
> check the command line switches for the installer and make sure you are
> running the installer in a silent or unattended mode.  If the installer
> pops up a window on the windows target, you'll never see it and the
> installer will just hang waiting for a mouse click or typing that will
> never arrive.
>
> try running with 'become'.  This solves a lot of installation woes as I
> believe it gets you an interactive user, which you don't usually get via
> winrm (its normally just a batch login).
>
> see if there's a chocolatey package for the visual studio version you want
> to install and use that - if nothing else it will likely save you having to
> figure out a bunch of command line switches.
>
> Hope this helps,
>
> Jon
>
>
> On Tuesday, November 14, 2017 at 5:59:44 PM UTC, lpesc...@google.com
> wrote:
>>
>> I have a play that installs MS Visual Studio, but it seems to hang. Im on
>> Win10 Professional.
>> The below is:
>> 1) My syntax from the playbook
>> 2) My log file.
>> Any ideas?
>>
>> 1)
>>
>>  - name: Install Visual Studio
>>
>> win_command: 'C:\Users\pkmbuilder\Desktop\VisualStudio.exe
>> --includeRecommended /InstallSelectableItems Microsoft.VisualStudio.Workloa
>> d.NativeMobile
>>
>>
>> 2)
>>
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i001: Burn v3.7.4906.0, Windows v10.0
>> (Build 15063: Service Pack 0), path: 
>> C:\Users\pkmbuilder\Desktop\VisualStudio.exe,
>> cmdline: '--includeRecommended /InstallSelectableItems
>> Microsoft.VisualStudio.Workload.NativeMobile /Log
>> C:\Users\pkmbuilder\Desktop\vs_install_log.txt -burn.unelevated
>> BurnPipe.{32A10A50-1DF3-44F8-A544-88CBF1171745}
>> {FAC00AB5-01EF-492C-9366-0D3C0DD4D2C6} 10616'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'SKUFriendlyName' to value 'VS Pro'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'SKUFriendlyID' to value '2000'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'ExtraEditionDisplayName' to value '#loc.slipstream'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'EditionDisplayName' to value 'Professional 2015'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'SKUFullName' to value 'vs_professional_SlipStream_3'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'VSUpdateGeneralVersion' to value '3'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'SkuSpecificHKLMHive' to value 'Software\Microsoft\VisualStudio\14.0'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'RebootRequested' to value '0'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'ExecuteSecondaryInstaller' to value '0'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'BundleProgressKey' to value 'Software\Microsoft\VisualStud
>> io\14.0\Setup\vs\professional'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable
>> 'SetupFeedKey' to value 'Software\Microsoft\VisualStud
>> io\14.0\Setup\vs\professional'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'LicenseFwlinkId' to value '735044'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'MoreLanguageFwlinkId' to value '659012'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'VSEIPAndPrivacyFwlinkId' to value '658994'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'MinOsLevelFwlinkId' to value '659008'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'SolutionFwlinkId' to value '658995'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'HelpFwlinkId' to value '658996'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'IE10FwlinkId' to value '658998'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'Win81BlockFwlinkId' to value '658999'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'SHA256BlockFwlinkId' to value '659006'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'Win81PreRelBlockFwlinkId' to value '659000'
>>
>> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable
>> 'Uni

Re: [ansible-project] Re: Ansible fails to connect to newly provisioned EC2 on 3rd task after successful running first 2 tasks

2017-11-16 Thread Matt Martz
Perhaps the instance was not actually up and accessible yet.  Did you use
`wait_for` or `wait_for_connection` after creating the instance to wait and
ensure they are up and accessible before moving on?

On Thu, Nov 16, 2017 at 10:35 AM,  wrote:

> I eventually fixed this by adding a retries parameter to the
> [ssh_connection] section of my ansible.cfg so it looks like the below.
>
> [ssh_connection]
> ssh_args = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
> retries = 10
>
> Pretty lame! If anyone finds a better solution please let me know...
>
> On Monday, November 13, 2017 at 11:16:25 AM UTC-7, ddrak...@gmail.com
> wrote:
>>
>> I have a playbook that creates EC2 instances and adds them to an in
>> memory group using the add_host module. I am then able to connect to the in
>> memory group and perform two successful commands before a third fails.
>>
>> I am seeing this problem just running the same file module to create
>> directories. I have something like this in my main playbook (ec2hosts is
>> the in-memory group creating after provisioning)
>>
>> - hosts: ec2hosts
>> user: ubuntu
>> gather_facts: false
>> name: try the setup
>> tasks:
>> - name: Get EC2 facts
>> ec2_metadata_facts:
>> register: ec2_facts
>> - name: import configure role
>> import_role:
>> name: configure
>> vars:
>> efs_ids: "{{ efs_id }}"
>>
>> The configure role is very simple:
>>
>> - name: Make the aws credentials directory
>> file:
>> state: directory
>> path: ~/.aws
>> - name: Make the hi directory
>> file:
>> state: directory
>> path: ~/.hi
>> - name: Make a temp directory
>> file:
>> state: directory
>> path: ~/.temp
>> - name: Make a bar directory
>> file:
>> state: directory
>> path: ~/.bar
>>
>>
>>
>> And this fails at the Make a temp directory task. The failed output with
>> -vvv looks like:
>>
>> <35.160.185.188> (0, '', "Warning: Permanently added '35.160.185.188'
>> (ECDSA) to the list of known hosts.\r\n") <35.160.185.188> ESTABLISH SSH
>> CONNECTION FOR USER: ubuntu <35.160.185.188> SSH: EXEC ssh -o
>> UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i AnsibleTest.pem
>> -o 'IdentityFile="[omitted_full_path]/AnsibleTest.pem"' -o
>> KbdInteractiveAuthentication=no -o PreferredAuthentications=gssap
>> i-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no
>> -o User=ubuntu -o ConnectTimeout=10 -tt 35.160.185.188 '/bin/sh -c
>> '"'"'/usr/bin/python /home/ubuntu/.ansible/tmp/ansi
>> ble-tmp-1510596698.75-58373657425242/file.py; rm -rf
>> "/home/ubuntu/.ansible/tmp/ansible-tmp-1510596698.75-58373657425242/" >
>> /dev/null 2>&1 && sleep 0'"'"'' <35.160.185.188> (255, '',
>> 'ssh_exchange_identification: read: Connection reset by peer\r\n') fatal:
>> [35.160.185.188]: UNREACHABLE! => { "changed": false, "msg": "Failed to
>> connect to the host via ssh: ssh_exchange_identification: read: Connection
>> reset by peer\r\n", "unreachable": true }
>>
>> I am using the following ssh_args in my ansible.cfg for the playbook:
>> ssh_args = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
>> -i "AnsibleTest.pem"
>>
>> Does anyone know what's happening here? This seems pretty weird and I'm
>> stuck.
>> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/2f0e10a9-82d2-4af9-9c1d-e0ad2e64fdeb%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v9AQ3OyViJMu9vq-D0fDojTXaU%2B%3Dk%3DE2rsqKXtcbXXRPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Ansible fails to connect to newly provisioned EC2 on 3rd task after successful running first 2 tasks

2017-11-16 Thread ddrake2012
I eventually fixed this by adding a retries parameter to the 
[ssh_connection] section of my ansible.cfg so it looks like the below. 

[ssh_connection]
ssh_args = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 
retries = 10

Pretty lame! If anyone finds a better solution please let me know...

On Monday, November 13, 2017 at 11:16:25 AM UTC-7, ddrak...@gmail.com wrote:
>
> I have a playbook that creates EC2 instances and adds them to an in memory 
> group using the add_host module. I am then able to connect to the in memory 
> group and perform two successful commands before a third fails. 
>
> I am seeing this problem just running the same file module to create 
> directories. I have something like this in my main playbook (ec2hosts is 
> the in-memory group creating after provisioning)
>
> - hosts: ec2hosts 
> user: ubuntu
> gather_facts: false
> name: try the setup
> tasks:
> - name: Get EC2 facts
> ec2_metadata_facts: 
> register: ec2_facts
> - name: import configure role 
> import_role: 
> name: configure
> vars: 
> efs_ids: "{{ efs_id }}"
>
> The configure role is very simple:
>
> - name: Make the aws credentials directory
> file: 
> state: directory
> path: ~/.aws
> - name: Make the hi directory
> file: 
> state: directory
> path: ~/.hi
> - name: Make a temp directory
> file: 
> state: directory
> path: ~/.temp
> - name: Make a bar directory
> file: 
> state: directory
> path: ~/.bar
>
>
>
> And this fails at the Make a temp directory task. The failed output with 
> -vvv looks like:
>
> <35.160.185.188> (0, '', "Warning: Permanently added '35.160.185.188' 
> (ECDSA) to the list of known hosts.\r\n") <35.160.185.188> ESTABLISH SSH 
> CONNECTION FOR USER: ubuntu <35.160.185.188> SSH: EXEC ssh -o 
> UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i AnsibleTest.pem 
> -o 'IdentityFile="[omitted_full_path]/AnsibleTest.pem"' -o 
> KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -tt 
> 35.160.185.188 '/bin/sh -c '"'"'/usr/bin/python 
> /home/ubuntu/.ansible/tmp/ansible-tmp-1510596698.75-58373657425242/file.py; 
> rm -rf 
> "/home/ubuntu/.ansible/tmp/ansible-tmp-1510596698.75-58373657425242/" > 
> /dev/null 2>&1 && sleep 0'"'"'' <35.160.185.188> (255, '', 
> 'ssh_exchange_identification: read: Connection reset by peer\r\n') fatal: 
> [35.160.185.188]: UNREACHABLE! => { "changed": false, "msg": "Failed to 
> connect to the host via ssh: ssh_exchange_identification: read: Connection 
> reset by peer\r\n", "unreachable": true } 
>
> I am using the following ssh_args in my ansible.cfg for the playbook: 
> ssh_args = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i 
> "AnsibleTest.pem" 
>
> Does anyone know what's happening here? This seems pretty weird and I'm 
> stuck. 
> 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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2f0e10a9-82d2-4af9-9c1d-e0ad2e64fdeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
If i use what you suggest i obtained this:




I was expecting that Enable Secure Backup was underlined in blue as the 
previous one, which works properly.



On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1e9b6e84-3d37-4d1c-8edb-642b93516e39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread Kai Stian Olstad
On Thursday, 16 November 2017 15.54.50 CET stefano.bian...@nap-anywhere.com 
wrote:
> Yes Kai! Now i can see the progress within the CLI.
> 
> What about this kind of question?
> 
> Enable Secure Backup mode? Yes/No [y/n]:
> 
> How can i write it?

Responses are regex so regexp special character need to be escaped by a 
backslash.
I think I got them all:

  Enable Secure Backup mode\? Yes/No \[y/n\]: n

This will answer no.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6731170.60pzI2Cj2U%40x1.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
Yes Kai! Now i can see the progress within the CLI.

What about this kind of question?

*Enable Secure Backup mode? Yes/No [y/n]:*

How can i write it?

On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1388493f-3751-4cf3-8ccc-ab35c1073d36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Tomcat Role for Windows

2017-11-16 Thread akazia . info
Hello,

I am kind of new to ansible. I did my first steps and got the ping from my 
control server to a windows machine up and working. So far so good.
Now I need to install Tomcat from scratch and add later on some patches. I 
was in the hope to find some example roles on ansible-galaxy but there are 
non for Tomcat on  Windows.
So here is my question, does any one know w source for such a role which I 
can use as a base to develop upon? 

Thank you very much
Michael

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/103297e2-0fb8-48c0-a47e-dfa108779883%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread Kai Stian Olstad
On Thursday, 16 November 2017 15.00.29 CET stefano.bian...@nap-anywhere.com 
wrote:
>  installed pexpect also on remote machine and nowit is working.
> 
> Now the code you suggested provides this output:
> 
> fatal: [stefano2]: FAILED! => {
> "changed": true,
> "cmd": "telnet 0.0.0.0 2200",
> "delta": "0:00:26.267272",
> "end": "2017-11-16 14:57:39.806298",
> "failed": true,
> "invocation": {
> "module_args": {
> "chdir": null,
> "command": "telnet 0.0.0.0 2200",
> "creates": null,
> "echo": false,
> "removes": null,
> "responses": {
> "Press any key to continue\\.": "",
> "login": "username",
> "password": "password"
> },
> "timeout": 30
> }
> },
> "msg": "non-zero return code",
> "rc": 1,
> "start": "2017-11-16 14:57:13.539026",
> "stdout": "Trying 0.0.0.0...\r\r\nConnected to 0.0.0.0.\r\r\nEscape 
> character is '^]'.\r\r\nstefano2.prv\r\nUnauthorized access 
> prohibited.\r\nlogin: username\r\nPassword: Connection closed by foreign 
> host.",
> "stdout_lines": [
> "Trying 0.0.0.0...",
> "",
> "Connected to 0.0.0.0.",
> "",
> "Escape character is '^]'.",
> "",
> "stefano2.prv",
> "Unauthorized access prohibited.",
> "login: username",
> "Password: Connection closed by foreign host."

In you previous mail you wrote password:, but it's actually Password with a 
capital P.

Default the expect responses is case sensitive, so you need to change it to 
  Password: password
or make it case insensitive like so
  (?i)password: password


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3710296.O7CBbsIC2B%40x1.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Error: The requested handler was not found

2017-11-16 Thread Shlomit Afgin
Thanks a lot! Your questions help me solve the problem. 

*The solution* is to move the handler part to  roles/basic/handlers/main.yml
without the 'handlers:' label.

Thanks again
On Thursday, November 16, 2017 at 4:03:18 PM UTC+2, Shlomit Afgin wrote:
>
>
>
> The file contain this yml lines is  roles/basic/tasks/main.yml. (start 
> with ---)
> I run it with command:  'ansible-playbook   site.yml'
> In site.yml it's have:
> ---   
> - hosts: cns  
>   roles:   
>   - basic
>
> hosts define in /etc/ansible/hosts.
> Do I still have things missing?
>
> Thanks a lot.
>
> On Thursday, November 16, 2017 at 12:58:45 PM UTC+2, Kai Stian Olstad 
> wrote:
>>
>> On 16.11.2017 11:48, Shlomit Afgin wrote: 
>> > I have ansible 2.5. the ymal file have: 
>> > 
>> > - name: Make sure file1.conf update 
>> >   copy: 
>> > src: file1.conf 
>> > dest: /tmp/file1.conf 
>> >   tags: copy-file1 
>> >   notify: 
>> >   - cat file1 
>> > 
>> >   handlers: 
>> > - name: cat file1 
>> >   command: cat /tmp/file1.conf > /tmp/dates 
>>
>> Is this the complete file? Is it a playbook? 
>> If so, you are missing a lot of things. 
>>
>>
>> > when I run ansible-playbook I get: 
>> > 
>> > ERROR! The requested handler 'cat file1' was not found in either the 
>> > main 
>> > handlers list nor in the listening handlers list 
>>
>> You handlers: is indented incorrect, it should be at the same level as 
>> the tasks: 
>>
>>
>> -- 
>> 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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/335bbb33-e6d7-4191-809d-dfc7d6c17fcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Error: The requested handler was not found

2017-11-16 Thread Kai Stian Olstad
On Thursday, 16 November 2017 15.03.18 CET Shlomit Afgin wrote:
> 
> The file contain this yml lines is  roles/basic/tasks/main.yml. (start with 
> ---)
> I run it with command:  'ansible-playbook   site.yml'
> In site.yml it's have:
> ---   
> - hosts: cns  
>   roles:   
>   - basic
> 
> hosts define in /etc/ansible/hosts.
> Do I still have things missing?

When you are using roles, handlers goes in a separate directory called handles.
So you need to move your handler to roles/basic/handlers/main.yml.


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/26522299.FZVta1SeFF%40x1.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Error: The requested handler was not found

2017-11-16 Thread Shlomit Afgin


The file contain this yml lines is  roles/basic/tasks/main.yml. (start with 
---)
I run it with command:  'ansible-playbook   site.yml'
In site.yml it's have:
---   
- hosts: cns  
  roles:   
  - basic

hosts define in /etc/ansible/hosts.
Do I still have things missing?

Thanks a lot.

On Thursday, November 16, 2017 at 12:58:45 PM UTC+2, Kai Stian Olstad wrote:
>
> On 16.11.2017 11:48, Shlomit Afgin wrote: 
> > I have ansible 2.5. the ymal file have: 
> > 
> > - name: Make sure file1.conf update 
> >   copy: 
> > src: file1.conf 
> > dest: /tmp/file1.conf 
> >   tags: copy-file1 
> >   notify: 
> >   - cat file1 
> > 
> >   handlers: 
> > - name: cat file1 
> >   command: cat /tmp/file1.conf > /tmp/dates 
>
> Is this the complete file? Is it a playbook? 
> If so, you are missing a lot of things. 
>
>
> > when I run ansible-playbook I get: 
> > 
> > ERROR! The requested handler 'cat file1' was not found in either the 
> > main 
> > handlers list nor in the listening handlers list 
>
> You handlers: is indented incorrect, it should be at the same level as 
> the tasks: 
>
>
> -- 
> 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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/38d01895-c2fe-4184-8172-273a686cd46b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
 installed pexpect also on remote machine and nowit is working.

Now the code you suggested provides this output:

*fatal: [stefano2]: FAILED! => {*
*"changed": true,*
*"cmd": "telnet 0.0.0.0 2200",*
*"delta": "0:00:26.267272",*
*"end": "2017-11-16 14:57:39.806298",*
*"failed": true,*
*"invocation": {*
*"module_args": {*
*"chdir": null,*
*"command": "telnet 0.0.0.0 2200",*
*"creates": null,*
*"echo": false,*
*"removes": null,*
*"responses": {*
*"Press any key to continue\\.": "",*
*"login": "username",*
*"password": "password"*
*},*
*"timeout": 30*
*}*
*},*
*"msg": "non-zero return code",*
*"rc": 1,*
*"start": "2017-11-16 14:57:13.539026",*
*"stdout": "Trying 0.0.0.0...\r\r\nConnected to 0.0.0.0.\r\r\nEscape 
character is '^]'.\r\r\nstefano2.prv\r\nUnauthorized access 
prohibited.\r\nlogin: username\r\nPassword: Connection closed by foreign 
host.",*
*"stdout_lines": [*
*"Trying 0.0.0.0...",*
*"",*
*"Connected to 0.0.0.0.",*
*"",*
*"Escape character is '^]'.",*
*"",*
*"stefano2.prv",*
*"Unauthorized access prohibited.",*
*"login: username",*
*"Password: Connection closed by foreign host."*
*]*
*}*
*to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*

I just changed the command telnet 0 2200 to *telnet 0.0.0.0 2200*

On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6fc42f2f-af65-4980-81bb-bef8dd0fc98d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
I installed pexpect also on remote machine and nowit is working.

Now the code you suggested provides this output:

*fatal: [stefano2]: FAILED! => {*
*"changed": true,*
*"cmd": "telnet 0.0.0.0 2200",*
*"delta": "0:00:26.267272",*
*"end": "2017-11-16 14:57:39.806298",*
*"failed": true,*
*"invocation": {*
*"module_args": {*
*"chdir": null,*
*"command": "telnet 0.0.0.0 2200",*
*"creates": null,*
*"echo": false,*
*"removes": null,*
*"responses": {*
*"Press any key to continue\\.": "",*
*"login": "username",*
*"password": "password"*
*},*
*"timeout": 30*
*}*
*},*
*"msg": "non-zero return code",*
*"rc": 1,*
*"start": "2017-11-16 14:57:13.539026",*
*"stdout": "Trying 0.0.0.0...\r\r\nConnected to 0.0.0.0.\r\r\nEscape 
character is '^]'.\r\r\nstefano2.prv\r\nUnauthorized access 
prohibited.\r\nlogin: username\r\nPassword: Connection closed by foreign 
host.",*
*"stdout_lines": [*
*"Trying 0.0.0.0...",*
*"",*
*"Connected to 0.0.0.0.",*
*"",*
*"Escape character is '^]'.",*
*"",*
*"stefano2.prv",*
*"Unauthorized access prohibited.",*
*"login: username",*
*"Password: Connection closed by foreign host."*
*]*
*}*
*to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*


On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dacb2d12-bca9-4b84-a01e-f6e0d3d8d922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
I have a question.

I installed pexpect with pip since i had 2.3 version. 
If i launch the suggested command:

*python -c 'import pexpect; print pexpect.__version__'*

I am able to see 4.3 version.

Then i tried to run the last code suggested by Kai and i get again the 
error:

fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
"The pexpect python module is required"}

What's wrong?

On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3e419906-a306-489a-a13a-d8a60f72841e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Problem with include_tasks

2017-11-16 Thread Clément VALENTIN
I have solved problem !
=> Upgrade Ansible 2.4.1.0 to 2.4.2.0 :)

Le jeudi 16 novembre 2017 13:17:31 UTC+1, Clément VALENTIN a écrit :
>
> I have same problem...
> Tasks list work with include but not with include_tasks :/
>
> Have you resolv your problem ?
>
> Le jeudi 21 septembre 2017 12:19:42 UTC+2, Jürgen Haas a écrit :
>>
>> I have a lot of includes in my roles and I replaced them with 
>> include_tasks which seems to be working fine. Just for one instance there 
>> is a problem. The original task in that role looks like this:
>>
>> ```
>>
>> - name: "Install Drupal"
>>   include: install.yml
>>   with_items: '{{ drupal_settings }}'
>>
>> ```
>>
>>
>> This works just fine but when I update that definition into this:
>>
>>
>>
>> ```
>>
>> - name: "Install Drupal"
>>   include_tasks: install.yml
>>   with_items: '{{ drupal_settings }}'
>>
>> ```
>>
>>
>> it doesn't do anything. It doesn't even print the name "Install Drupal". 
>> Debugging doesn't provide any more details.
>>
>> Does that mean thet include_tasks doesn't work in loops?
>>
>>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dfbcffe8-4aa1-4665-8489-3d034abfbf34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Problem with ansible winrm

2017-11-16 Thread steve . vibert
Thank you Jordan 

It was the problem for a few server and the firewall rules for some another 
server.  

Le mercredi 15 novembre 2017 14:16:03 UTC-5, Jordan Borean a écrit :
>
> Make sure you meet the requirements for Ansible as documented here 
> http://docs.ansible.com/ansible/devel/windows_setup.html#host-requirements. 
> It requires at least PowerShell v3 which is when the ConvertTo-Json cmdlet 
> was added.

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1d95c0ff-3609-4b24-892b-2af4bd6a6209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible ad-hoc win_ping fails for Windows hosts where direct pywinrm request works

2017-11-16 Thread macronaute
Good morning,

I'm struggling with an annoying issue with my current Ansible setup. 
Ansible master server is configured and I'm testing basic connectiviy with 
Linux and Windows nodes.
Connectivity with Linux nodes is working fine, ad-hoc commands return 
expected values.

Windows test node is configured with an HTTPs listener (with server 
certificate installed), firewall is disabled, WinRM service is started and 
available from other Windows hosts. So far I can successfully issue wman 
commands locally & remotely from Windows nodes:
 
test-wsman -computername winsrv01.domain.lan -Usessl

wsmid   : 
> http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
> ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
> ProductVendor   : Microsoft Corporation
> ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0


Ansible win_ping issued from Ansible server fails:

ansible 2.4.0.0
>
>   config file = /etc/ansible/ansible.cfg
>
>   configured module search path = 
>> [u'/home/ansible/.ansible/plugins/modules', 
>> u'/usr/share/ansible/plugins/modules']
>
>   ansible python module location = /usr/lib/python2.7/site-packages/ansible
>
>   executable location = /usr/bin/ansible
>
>   python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 
>> 20150623 (Red Hat 4.8.5-16)]
>
> Using /etc/ansible/ansible.cfg as config file
>
> setting up inventory plugins
>
> Set default localhost to localhost
>
> Parsed /etc/ansible/hosts inventory source with ini plugin
>
> Loading callback plugin minimal of type stdout, v2.0 from 
>> /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
>
> META: ran handlers
>
> Using module file 
>> /usr/lib/python2.7/site-packages/ansible/modules/windows/win_ping.ps1
>
>  ESTABLISH SSH CONNECTION FOR USER:winu...@domain.lan
>
>  SSH: ansible.cfg set ssh_args: 
>> (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
>
>  SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port 
>> set: (-o)(Port=5986)
>
>  SSH: 
>> ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: 
>> (-o)(IdentityFile="/home/ansible/.ssh/myrsakey")
>
>  SSH: 
>> ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: 
>> (-o)(User=winu...@domain.lan)
>
>  SSH: ANSIBLE_TIMEOUT/timeout set: 
>> (-o)(ConnectTimeout=60)
>
>  SSH: found only ControlPersist; added ControlPath: 
>> (-o)(ControlPath=/home/ansible/.ansible/cp/208bf2aa12)
>
>  SSH: EXEC sshpass -d12 ssh -vvv -C -o 
>> ControlMaster=auto -o ControlPersist=60s -o Port=5986 -o 
>> 'IdentityFile="/home/ansible/.ssh/myrsakey"' -o User=winu...@domain.lan -o 
>> ConnectTimeout=60 -o ControlPath=/home/ansible/.ansible/cp/208bf2aa12 
>> winsrv01.DOMAIN.LAN '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
>
>  (255, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 
>> Jan 2017\r\ndebug1: Reading configuration data 
>> /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying 
>> options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: 
>> Control socket "/home/ansible/.ansible/cp/208bf2aa12" does not 
>> exist\r\ndebug2: resolving "winsrv01.DOMAIN.LAN" port 5986\r\ndebug2: 
>> ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to winsrv01.DOMAIN.LAN 
>> [10.0.0.4] port 5986.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 
>> clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 
>> 5 ms remain after connect\r\ndebug1: identity file 
>> /home/ansible/.ssh/myrsakey type 1\r\ndebug1: key_load_public: No such file 
>> or directory\r\ndebug1: identity file /home/ansible/.ssh/myrsakey-cert type 
>> -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local 
>> version string SSH-2.0-OpenSSH_7.4\r\nConnection timed out during banner 
>> exchange\r\n')
>
> winsrv01.DOMAIN.LAN | UNREACHABLE! => {
>
> "changed": false, 
>
> "msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 
>> 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data 
>> /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying 
>> options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: 
>> Control socket \"/home/ansible/.ansible/cp/208bf2aa12\" does not 
>> exist\r\ndebug2: resolving \"winsrv01.DOMAIN.LAN\" port 5986\r\ndebug2: 
>> ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to winsrv01.DOMAIN.LAN 
>> [10.0.0.4] port 5986.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 
>> clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 
>> 5 ms remain after connect\r\ndebug1: identity file 
>> /home/ansible/.ssh/myrsakey type 1\r\ndebug1: key_load_public: No such file 
>> or directory\r\ndebug1: identity file /home/ansible/.ssh/myrsakey-cert type 
>> -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local 
>> version string SSH-2.0-OpenSSH_7.4\r\nConnection timed out during banner 
>> exchange\r\n", 
>
> "unreachable": true
>
> }
>
> pywinrm test script can properly connect to Windows node 

[ansible-project] Re: Problem with include_tasks

2017-11-16 Thread Clément VALENTIN
I have same problem...
Tasks list work with include but not with include_tasks :/

Have you resolv your problem ?

Le jeudi 21 septembre 2017 12:19:42 UTC+2, Jürgen Haas a écrit :
>
> I have a lot of includes in my roles and I replaced them with 
> include_tasks which seems to be working fine. Just for one instance there 
> is a problem. The original task in that role looks like this:
>
> ```
>
> - name: "Install Drupal"
>   include: install.yml
>   with_items: '{{ drupal_settings }}'
>
> ```
>
>
> This works just fine but when I update that definition into this:
>
>
>
> ```
>
> - name: "Install Drupal"
>   include_tasks: install.yml
>   with_items: '{{ drupal_settings }}'
>
> ```
>
>
> it doesn't do anything. It doesn't even print the name "Install Drupal". 
> Debugging doesn't provide any more details.
>
> Does that mean thet include_tasks doesn't work in loops?
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/86f91fb0-0656-4d81-a6a0-b7caf2f4c404%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread Kai Stian Olstad

On 16.11.2017 12:15, stefano.bian...@nap-anywhere.com wrote:

Step 6 is regarding an IBM command line interface configuration.
When i perform the manual configuration after all it has been 
installed,

and the service up, i need to access to the CLI using the following
command:

*$ telnet 0 2200*

then a login prompt is shown:

login: username
password: password

here i need to set the default username and password. After that i get 
the

following message:


ATTENTION: Use care when making your selections for operational
modes. If you select an incorrect mode for your environment,
the only way to change an operational mode is to reinitialize
the appliance.

Press any key to continue.


here i should press enter. Then a new password will be required so i 
need

to write the new password the first time and repeat it another time.

i tried with the previous code but i get always the same error. 
Probably
i'm not doing the right things in my playbook, do you have any 
suggestion?


This should be the correct syntax.

  - name: Launch the CLI first time
expect:
  command: telnet 0 2200
  responses:
login: username
password: password
Press any key to continue\.: ""

--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8a73657745d1ec2d74e0b5007ea43810%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
Probablyi need to describe my problem better.

I need to create a role which performs the following steps:

   1. Download prerequisites packages like telnet schroot and wget
   2. create the appropriate folder if does not exists
   3. download a couple of .rpm packages within this folder
   4. install these .rpm packages using yum
   5. start the service
   6. Perform some configuration

Now, i have completed all the steps till step 5, only step 6 is missing.

Step 6 is regarding an IBM command line interface configuration.
When i perform the manual configuration after all it has been installed, 
and the service up, i need to access to the CLI using the following 
command: 

*$ telnet 0 2200*

then a login prompt is shown:

login: username
password: password

here i need to set the default username and password. After that i get the 
following message:


ATTENTION: Use care when making your selections for operational
modes. If you select an incorrect mode for your environment,
the only way to change an operational mode is to reinitialize
the appliance.

Press any key to continue.


here i should press enter. Then a new password will be required so i need 
to write the new password the first time and repeat it another time.

i tried with the previous code but i get always the same error. Probably 
i'm not doing the right things in my playbook, do you have any suggestion?


On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5896dea1-fa14-44e5-b7b2-04d7b34c5dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: expect "Press enter to continue"

2017-11-16 Thread stefano . bianchi
Probablyi need to describe my problem better.

I need to create a role which performs the following steps:

   1. Download prerequisites packages like telnet schroot and wget
   2. create the appropriate folder if does not exists
   3. download a couple of .rpm packages within this folder
   4. install these .rpm packages using yum
   5. start the service
   6. Perform some configuration

Now, i have completed all the steps till step 5, only step 6 is missing.

Step 6 is regarding an IBM command line interface configuration.
When i perform the manual configuration after all it has been installed, 
and the service up, i need to access to the CLI using the following 
command: 

*$ telnet 2200*

then a login prompt is shown:

login: username
password: password

here i need to set the default username and password. After that i get the 
following message:


ATTENTION: Use care when making your selections for operational
modes. If you select an incorrect mode for your environment,
the only way to change an operational mode is to reinitialize
the appliance.

Press any key to continue.


here i should press enter. Then a new password will be required so i need 
to write the new password the first time and repeat it another time.

i tried with the previous code but i get always the same error. Probably 
i'm not doing the right things in my playbook, do you have any suggestion?




On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com 
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api connect 
> gateways software and enable the service.
> I would improve this role adding configuration steps.
>
> After the installation the APIC gateways need to be configured accessing 
> to a dedicated command line interface, the first access is made of the 
> following steps:
>
> $ telnet 0 2200  *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user  *//here i need to write the username*
> Password: *  *// as well as the password*
>
> 
> ATTENTION: Use care when making your selections for operational
> modes. If you select an incorrect mode for your environment,
> the only way to change an operational mode is to reinitialize
> the appliance.
>
> Press any key to continue.
> 
>
> I'm stuck here, i tried to add these lines:
>
>  * - name: Launch the CLI first time*
> *expect:*
> *  command: telnet 0 2200*
> *  responses:*
> *Question:*
> *  login: "user"*
> *  Password: "password"*
> *  Press any key to continue.: /bin/bash -c "echo"*
>
> Every time i try to run the role i gt this error at the end:
>
> *TASK [Launch the CLI first time] 
> *
> *fatal: [stefano3]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *fatal: [stefano2]: FAILED! => {"changed": false, "failed": true, "msg": 
> "The pexpect python module is required"}*
> *to retry, use: --limit @/etc/ansible/api_gateways/apigw.retry*
>
> Could you help me? 
> How can i answer to the "Press any key to continue"? 
>
> Or maybe there are further errors i did not get in the previous steps.
>
>
>

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6f97992e-f559-46a1-b9d4-18af2b778279%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Error: The requested handler was not found

2017-11-16 Thread Kai Stian Olstad

On 16.11.2017 11:48, Shlomit Afgin wrote:

I have ansible 2.5. the ymal file have:

- name: Make sure file1.conf update
  copy:
src: file1.conf
dest: /tmp/file1.conf
  tags: copy-file1
  notify:
  - cat file1

  handlers:
- name: cat file1
  command: cat /tmp/file1.conf > /tmp/dates


Is this the complete file? Is it a playbook?
If so, you are missing a lot of things.



when I run ansible-playbook I get:

ERROR! The requested handler 'cat file1' was not found in either the 
main

handlers list nor in the listening handlers list


You handlers: is indented incorrect, it should be at the same level as 
the tasks:



--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fe96113f9a3fc8cf9fff6b6ed3bed1fb%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Set AWS Hostname

2017-11-16 Thread Dick Davies
You have a YAML nesting mistake - Ansible is reading your register: as
a property of the task,
rather than at the same level as the task.
Your 'with_items:' on the next task has the same issue.

On 16 November 2017 at 09:33, Byym Reddy  wrote:
> I'm using ansible to create aws instances. I want to set the hostname of the
> instance created. The scripts available around have deprecated tags.
> 'register' is no more a supported parameter with ec2. Below my sample
> script. In turn, add_host doesn't work. How to set hostname with ansible
> script? Any help appreciated.
>
> ---
> - name: Provision Instance
>   ec2:
>  aws_access_key: "{{ key1 }}"
>  aws_secret_key: "{{ key2 }}"
>  key_name: "{{ key }}"
>  instance_type: "t2.micro"
>  image: "ami-ccecf5af"
>  region: "ap-southeast-2"
>  group: "SERVERS_PROD"
>  state: present
>  #zone: 1
>  vpc_subnet_id: "subnet-4"
>  instance_tags:
>   Name: Sample
>   Env: production
>   Owner: Company
>   InstanceDescription: Sample Company
>   CreatedBy: John
>   ManagedBy: Logistics
>  #ebs_optimized: yes
>  assign_public_ip: no
>  wait: true
>  count: 1
>  volumes:
>  - device_name: /dev/sda1
>device_type: gp2
>volume_size: "20"
>delete_on_termination: true
>  - device_name: /dev/sdf
>device_type: gp2
>volume_size: "10"
>delete_on_termination: true
> register:ec2
>
> - name: Add new instance to host group
>   add_host:
>  hostname: "A01LPBSIM01"
>  groupname: SERVERS_PROD
>  with_items: "{{ ec2 }}"
>
>
> fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported
> parameters for (ec2) module: register
>
> Supported parameters include: assign_public_ip, aws_access_key,
> aws_secret_key, count, count_tag, ebs_optimized,
>
> ec2_url, exact_count, group, group_id, id, image, instance_ids,
> instance_initiated_shutdown_behavior,
>
> instance_profile_name, instance_tags, instance_type, kernel, key_name,
> monitoring, network_interfaces,
>
> placement_group, private_ip, profile, ramdisk, region, security_token,
> source_dest_check, spot_launch_group,
>
> spot_price, spot_type, spot_wait_timeout, state, tenancy,
> termination_protection, user_data, validate_certs,
>
> volumes, vpc_subnet_id, wait, wait_timeout, zone"}
>
> --
> 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@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9d5070ae-07b2-4e94-ad5a-08db2b9b4058%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK5eLPRX_qKg9WcaNcUswnGoePmmUYvBNdE4Ry2ObrSsOVKn1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Error: The requested handler was not found

2017-11-16 Thread Shlomit Afgin


I have ansible 2.5. the ymal file have:

- name: Make sure file1.conf update
  copy:
src: file1.conf
dest: /tmp/file1.conf
  tags: copy-file1
  notify:
  - cat file1

  handlers:
- name: cat file1
  command: cat /tmp/file1.conf > /tmp/dates


when I run ansible-playbook I get:

ERROR! The requested handler 'cat file1' was not found in either the main 
handlers list nor in the listening handlers list


Any ideas?
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/21ba131e-d832-42e9-a243-826c181626b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Utility role with sub-tasks - how to approach?

2017-11-16 Thread Kai Stian Olstad

On 16.11.2017 02:14, DigitalHermit wrote:


On Wednesday, November 15, 2017 at 11:00:08 AM UTC-5, Kai Stian Olstad
wrote:


On Wednesday, 15 November 2017 15.58.47 CET DigitalHermit wrote:
> Is there a cleaner, Ansible way to do this?

Maybe, there's always many ways to tackle a challenge.
Since you haven't shared the specifics it impossible to be specific.



Let me elaborate on my goal:
I have a library of roles. Each of these roles has common tasks across 
the
library. For example, both my install_nginx and install_elk roles have 
a

common task to create a filesystem.

E.g.:
roles/install_nginx/tasks/create_webdir.yml
roles/install_elk/tasks/create_datadir.yml

To simplify filesystem creation I created an adhoc_fs role and call it 
from

within the playbook with an include


- name: "Create datadir"
  include_role:
name: adhoc_fs
vars:
  adhoc_filesystems:
{ vol_group: 'data_vg', lv_mount: '/mnt/webdata1', lv_name:
'webdata1_lv', lv_size: '40G', owner: apache }
{ vol_group: 'data_vg', lv_mount: '/mnt/webdata2', lv_name:
'webdata2_lv', lv_size: '40G', owner: apache }

This works fine, but the problem is now that my library contains many 
of

these utility roles. I would prefer to have them all in a single role,
"utility" for example, and call them as needed.  Typical tasks would be
user creation, iptables rules, etc..The point of this is to avoid
copying/pasting from role to role which will ease maintenance.


Know it understand what you are trying to achieve.

Do something like this when is you only option I think, but the problem 
was all the skipped tasks.
In Ansible 2.4 include is depreciated in favor of import_tasks and 
include_tasks.


The nice thing with include task is that it's dynamic, so you when is 
check only on the include it self and not on all the task in the 
included file.
import_tasks works like include, when is added to all task before all 
task is executed.


So with include_task and Ansible 2.4 you will reduce the number of 
skipped task in the output considerably.



--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c3a350e9f45e6e47975d5ca72580dd0c%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Set AWS Hostname

2017-11-16 Thread Byym Reddy
I'm using ansible to create aws instances. I want to set the hostname of 
the instance created. The scripts available around have deprecated tags. 
'register' is no more a supported parameter with ec2. Below my sample 
script. In turn, add_host doesn't work. How to set hostname with ansible 
script? Any help appreciated.

---
- name: Provision Instance
  ec2:
 aws_access_key: "{{ key1 }}"
 aws_secret_key: "{{ key2 }}"
 key_name: "{{ key }}"
 instance_type: "t2.micro"
 image: "ami-ccecf5af"
 region: "ap-southeast-2"
 group: "SERVERS_PROD"
 state: present
 #zone: 1
 vpc_subnet_id: "subnet-4"
 instance_tags:
  Name: Sample
  Env: production
  Owner: Company
  InstanceDescription: Sample Company
  CreatedBy: John
  ManagedBy: Logistics
 #ebs_optimized: yes
 assign_public_ip: no
 wait: true
 count: 1
 volumes:
 - device_name: /dev/sda1
   device_type: gp2
   volume_size: "20"
   delete_on_termination: true
 - device_name: /dev/sdf
   device_type: gp2
   volume_size: "10"
   delete_on_termination: true 
register:ec2

- name: Add new instance to host group
  add_host:
 hostname: "A01LPBSIM01"
 groupname: SERVERS_PROD
 with_items: "{{ ec2 }}"


fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported 
parameters for (ec2) module: register 

Supported parameters include: assign_public_ip, aws_access_key, aws_secret_key, 
count, count_tag, ebs_optimized, 

ec2_url, exact_count, group, group_id, id, image, instance_ids, 
instance_initiated_shutdown_behavior, 

instance_profile_name, instance_tags, instance_type, kernel, key_name, 
monitoring, network_interfaces, 

placement_group, private_ip, profile, ramdisk, region, security_token, 
source_dest_check, spot_launch_group, 

spot_price, spot_type, spot_wait_timeout, state, tenancy, 
termination_protection, user_data, validate_certs, 

volumes, vpc_subnet_id, wait, wait_timeout, zone"}

-- 
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@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9d5070ae-07b2-4e94-ad5a-08db2b9b4058%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Ansible Install of MS Visual Studio Professional with Updates hanging

2017-11-16 Thread 'J Hawkesworth' via Ansible Project
Not something I've done myself but I have a couple of suggestions of things 
you can try:

check the command line switches for the installer and make sure you are 
running the installer in a silent or unattended mode.  If the installer 
pops up a window on the windows target, you'll never see it and the 
installer will just hang waiting for a mouse click or typing that will 
never arrive.

try running with 'become'.  This solves a lot of installation woes as I 
believe it gets you an interactive user, which you don't usually get via 
winrm (its normally just a batch login).

see if there's a chocolatey package for the visual studio version you want 
to install and use that - if nothing else it will likely save you having to 
figure out a bunch of command line switches.

Hope this helps,

Jon

On Tuesday, November 14, 2017 at 5:59:44 PM UTC, lpesc...@google.com wrote:
>
> I have a play that installs MS Visual Studio, but it seems to hang. Im on 
> Win10 Professional.  
> The below is:
> 1) My syntax from the playbook
> 2) My log file.
> Any ideas?
>
> 1)
>
>  - name: Install Visual Studio
>
> win_command: 'C:\Users\pkmbuilder\Desktop\VisualStudio.exe 
> --includeRecommended /InstallSelectableItems 
> Microsoft.VisualStudio.Workload.NativeMobile
>
>
> 2)
>
>
> [2CC4:28D8][2017-11-14T17:38:31]i001: Burn v3.7.4906.0, Windows v10.0 
> (Build 15063: Service Pack 0), path: 
> C:\Users\pkmbuilder\Desktop\VisualStudio.exe, cmdline: 
> '--includeRecommended /InstallSelectableItems 
> Microsoft.VisualStudio.Workload.NativeMobile /Log 
> C:\Users\pkmbuilder\Desktop\vs_install_log.txt -burn.unelevated 
> BurnPipe.{32A10A50-1DF3-44F8-A544-88CBF1171745} 
> {FAC00AB5-01EF-492C-9366-0D3C0DD4D2C6} 10616'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'SKUFriendlyName' to value 'VS Pro'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'SKUFriendlyID' to value '2000'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'ExtraEditionDisplayName' to value '#loc.slipstream'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'EditionDisplayName' to value 'Professional 2015'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'SKUFullName' to value 'vs_professional_SlipStream_3'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'VSUpdateGeneralVersion' to value '3'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'SkuSpecificHKLMHive' to value 'Software\Microsoft\VisualStudio\14.0'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'RebootRequested' to value '0'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'ExecuteSecondaryInstaller' to value '0'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'BundleProgressKey' to value 
> 'Software\Microsoft\VisualStudio\14.0\Setup\vs\professional'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'SetupFeedKey' to value 
> 'Software\Microsoft\VisualStudio\14.0\Setup\vs\professional'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'LicenseFwlinkId' to value '735044'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'MoreLanguageFwlinkId' to value '659012'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'VSEIPAndPrivacyFwlinkId' to value '658994'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'MinOsLevelFwlinkId' to value '659008'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'SolutionFwlinkId' to value '658995'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'HelpFwlinkId' to value '658996'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'IE10FwlinkId' to value '658998'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'Win81BlockFwlinkId' to value '658999'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'SHA256BlockFwlinkId' to value '659006'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'Win81PreRelBlockFwlinkId' to value '659000'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'UninstallMddInfoFwlinkId' to value '659002'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable 
> 'UpdateXmlFwlinkId' to value '659005'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'NetfxProductVersion' to value '4.5.25000'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'ProfessionalVSVersion' to value '11.0.50727'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'BaselineBundleVersion' to value '14.0.23107'
>
> [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable 
> 'FirstSlipstreamBundleVersion' to value '14.0.23108'
>
> [2CC4:28D8][2017-