[ansible-project] Ansible on Windows (with credssp) running into issues.

2017-08-23 Thread Vishnu V Potti
Hi, I am trying to control a windows 2016 server host using Ansible control machine( CentOS) I followed the steps mentioned in http://docs.ansible.com/ansible/latest/intro_windows.html#id18 But I ran into issues and need help Steps I followed. 1) Setup Ansible Controller machine in CentOS 2)

[ansible-project] win_get_url terrible performance, help on metric gathering and troubleshooting?

2017-08-23 Thread bob
I have an IIS web server and 13 Windows 7 computers on the same VLAN. On each Windows 7 computer I want to win_get_url a 182M file from the IIS server. Here is the ansible play - name: download installer files win_get_url: url: "{{ item.url }}/{{ item.file }}" dest: "{{ item.dest }}\\{{ item.fi

[ansible-project] Re: Parsing log files with timestamp Ansible

2017-08-23 Thread Soniya panwar
you can use lineinfile module for this. for more understanding on lineinfile module you can go through to the link " http://docs.ansible.com/ansible/latest/lineinfile_module.html"; if anything specific is required please elaborate in details. On Tuesday, August 22, 2017 at 9:10:13 PM UTC+5:30, S

Re: [ansible-project] Ansible role dependcies/requirements.yml

2017-08-23 Thread Soniya panwar
>>Can we add post tasks(playbooks from subversion) somehow inside roles? Or >>place post tasks in top level dirctory to be used by all roles somehow? Yes, we can do that by defining dependency in main.yml in meta directory. Example: #meta/main.yml Dependencies: - ansiblr-role -- You received

[ansible-project] Referencing roles within a module?

2017-08-23 Thread josphill
First off, I am pretty new to Ansible roles, so please bear with me. There is a set of roles in a module (https://github.com/redhat-cop/casl-ansible), and I want to use a role within that module called `oc-apply`. How do I reference that? I created a YAML file to install the module: # This is

[ansible-project] Re: Referencing roles within a module?

2017-08-23 Thread josphill
I found a work-around, but I am not sure if it is the correct way to handle this. After installing via ansible-galaxy as described above, I used the following playbook to run the role: --- - hosts: localhost roles: - { role: 'casl-ansible/roles/oc-apply' } Anyone have a better solution?

[ansible-project] Re: Ansible on Windows (with credssp) running into issues.

2017-08-23 Thread Jordan Borean
Hi ansible_connection should be 'winrm' and you can set the auth mode using ansible_transport. So ultimately your vars should be; ansible_user: Administrator > ansible_password: RandomePassword > ansible_port: 5985 > ansible_winrm_scheme: http > ansible_connection: winrm > ansible_winrm_transpor

[ansible-project] Re: win_get_url terrible performance, help on metric gathering and troubleshooting?

2017-08-23 Thread Jordan Borean
That's weird, I've used win_get_url to download files in the gigabyte range without any performance issues. One thing I would recommend is to try the powershell command below and post the results in the github issue. )New-Object System.Net.WebClient).DownloadFile("put the URL here", "put the de

[ansible-project] Re: Inconsistency in variable interpretation in ignore_errors when combined with with_items ...

2017-08-23 Thread G Sudduth
In case someone else hits this fascinating problem. This is what I had to do in the end ... --- - name: FAILER! command: /bin/false register: result with_items: - one - two ignore_errors: True - name: Error checker fail: msg: "FAILER! FAILED!" when: result.failed is defin

[ansible-project] Re: Referencing roles within a module?

2017-08-23 Thread Soniya panwar
yes, you are doing this in right way, you can call role directly or you can parameterize the roles: Example: --- - hosts: localhost roles: - casl-ansible/roles/oc-apply - { role: casl-ansible/roles/oc-apply } or if you wants to use any condition or variable to execute your role then you

[ansible-project] Ansible facts from command line - drill down

2017-08-23 Thread Anfield
Running this from command link - ansible all -m setup -a 'filter=ansible_default_ipv4*' The output is 127.0.0.1 | SUCCESS => { "ansible_facts": { "ansible_default_ipv4": { "address": "192.168.150.129", "alias": "eno1636", "broadcast": "192.168.

Re: [ansible-project] Ansible facts from command line - drill down

2017-08-23 Thread Matt Martz
The filter functionality only works for top level keys. You can either grep, or use the `--tree` option to write the response out to a file, and then use something like jq or a programming language to parse the JSON file. On Wed, Aug 23, 2017 at 2:02 PM, Anfield wrote: > Running this from comma

[ansible-project] Install and use Ansible with a non-root account

2017-08-23 Thread Joaquin Tejada
Hello everyone. I need a little help. I've been looking for a document that states or indicates what type of user access is required to install and use Ansible. Can anyone point me to that direction? Bottom line, I wanted to know if there's a way to install and use Ansible with a non-root ac

Re: [ansible-project] Install and use Ansible with a non-root account

2017-08-23 Thread Pshem Kowalczyk
You can use ansible on a controller without root privileges. Level of privileges on the remote host you mange depends on what you're trying to achieve. In most cases you'll need root access, since you're making system-wide changes. kind regards Pshem On Thu, 24 Aug 2017 at 08:59 Joaquin Tejada

[ansible-project] debugging nested list

2017-08-23 Thread Henry Medina
Hello Folks, I have a debugging question that has left me scratching my head. I have a vars file with the following vars (using ansible 2.3.2.0): packages1: one: version: "one-ish" two: version: "two-ish" ## I have a playbook with the following debugging statements:

[ansible-project] add user via adhoc

2017-08-23 Thread Tcpip
Hi all I want to add users via adhoc commands ansible all -m user -a "name=test password=test" -s -K but is not working ,please help. thanks. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiv

[ansible-project] Re: add user via adhoc

2017-08-23 Thread Soniya panwar
Hey Tcpip, Can you please elaborate what exactly error you are getting after running this command because its working fine for me. You need to provide more info like - the env (os, distro, version, etc) you are running ansible from - the full output (with the verbosity level raised by adding t

[ansible-project] sudoers.d file with template and validate is failing

2017-08-23 Thread Tyler K
I have a task that is supposed to use a template to create a sudoers.d file and validate it. When the play runs it fails because of the validation. But when I create the file without validation and then validate the file myself it passes. In the template it uses variables to populate part of the

[ansible-project] Re: sudoers.d file with template and validate is failing

2017-08-23 Thread Tyler K
Welp, I think the issue was related to my editor. I was using pycharm. It must have formatted the file somehow, cause I deleted the file then opened it in vim and pasted the same line. It worked On Thursday, August 24, 2017 at 12:58:03 AM UTC-5, Tyler K wrote: > > I have a task that is supposed