[ansible-project] lineinfile - simply replace a string

2017-05-15 Thread AnsiNoob
Hi Two things that I miss in Ansible when compared to shell scripting is easy 'grep' and 'sed'. That was easy to do in shell! My case is very simple. I have a file with lot of lines (sample below) and the line mentioned below comment has to be checked for its presence.

[ansible-project] Re: Provisioning a given number of cloud machines

2017-05-15 Thread Ivan Ponomarev
After a week of studying Ansible I came to the answer myself. 'The right Ansible way' seems to do all the 'procedural/algorithmic' part in Action Plugins (https://www.ansible.com/blog/how-to-extend-ansible-through-plugins) It is not hard to implement a plugin that returns a list of new

[ansible-project] Re: Ansible Problems with vmware pysphere and some general issues

2017-05-15 Thread americanoz
Well I am back to square one with the VM Modules again. I am not sure if I am doing some wrong with my code is anybody else getting these mods to work with there code?? if please let me know as I would love to have a one on one and share my code so I could stop banging my head against the wall.

[ansible-project] windows 2012 server SSL authentication

2017-05-15 Thread Hmdi Bz
Hello, I have followed all the steps in this tutorial: http://www.hurryupandwait.io/blog/certificate-password-less-based-authentication-in-winrm to setup a passwordless ssl based authentication between a centos 7 local VM (where ansible is installed) and a Windows 10 VM and it works perfectly.

[ansible-project] Using ansible as a hardening tool

2017-05-15 Thread Bob Nian
Is there anyone out there that have used ansible as a hardening tool to harden hypervisors like ESXi, KVM and Windows Server? If so, is there any playbook available or tutorial to use ansible to harden hypervisors? After trying to research for a tutorial/playbook on this topic for a while, I

[ansible-project] With_items over the loops with "when", can we write multiple "when" in one task?

2017-05-15 Thread Raj Martha
Hi all, I want to write the code like this, is it possible? or is there any better way to write? --- - become: true become_user: wsadmin hosts: ATST-ESBDMGR tasks: - ping: ~ - name: "Displaying Hostname for DMGR Profile Server" register: hostnamefordmgr

[ansible-project] Re: cannot run win_ping. receiving "ssl: the specified credentials were rejected by the server"

2017-05-15 Thread 'J Hawkesworth' via Ansible Project
ansible_user=.\test is an unusual looking username. Also it looks like you are connecting is '.\medcon' when you run ansible command. "the specified credentials were rejected by the server" usually means that the supplied username and password don't match what windows is expecting. Could

[ansible-project] cannot run win_ping. receiving "ssl: the specified credentials were rejected by the server"

2017-05-15 Thread Leo Y
Hello, I try to setup a simple Ansible inventory for Windows server using basic authentication. Both my machines are in Azure. Windows server is not in domain and has a user who is a member in Administrators and Remote Management groups. HTTPS between machines work: $ nc -z -w1

Re: [ansible-project] How can we host our own Ansible Galaxy server?

2017-05-15 Thread Daniel Andrei Minca
I wanted to go with Ansible Galaxy at first, but I tried it locally and ansible-container was failing to start the django app because the image doesn't exist. Also the process of *Powering up Ansible Galaxy *is not fully documented :) all I did was look how you guys start it in TravisCI. On

[ansible-project] Re: Multiple host files with host vars - what is the precedence?

2017-05-15 Thread Dan Bateman
Yes and no. I have already put some of the variables that are contained in the hosts files into group_vars/all, but since I am using a directory for inventory it is reading all the hosts files and so some environment host files I have not yet had the chance to migrate to group_vars/envname.yml.

Re: [ansible-project] Getting paths right in Windows

2017-05-15 Thread 'J Hawkesworth' via Ansible Project
I'm not seeing the behaviour you describe - maybe my playbook isn't doing the same things as yours though? # playbook: $ cat trondpath.yml --- - name: test trond observed strange path behaviour hosts: TENSY vars: logfiles_path: "F:\\Logs" connection: winrm gather_facts: false