[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

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 |

[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

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

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

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

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

[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

[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":

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:

[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

[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 >

[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.

[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

[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

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

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

[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",* *

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

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

[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-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: >

[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] 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

[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

[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

[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)

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

[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

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

[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:

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

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 >

[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.

[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.

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*

[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

[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

[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

[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

[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

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,

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

[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

[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

[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

[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