[ansible-project] Query on connecting remote windows servers from powershell server via ansible.

2016-11-28 Thread Rajesh N
Dear All, I have an query/issue. >From my windows powershell server i am able to execute powershell scripts on remote windows machines on same domain without asking for password using the domain account. If i try the same thing via ansible, i get an error. Executing just Invoke-command

Re: [ansible-project] Gitter chat/channel for Ansible?

2016-11-28 Thread Darryl Cauldwell
On Tuesday, 12 January 2016 21:51:15 UTC, Greg DeKoenigsberg wrote: > > On Sat, Jan 9, 2016 at 4:52 PM, Brandon Jozsa > wrote: > > Greg, > > > > Did you ever find anything out about this? I was asking folks in the IRC > > channel about this today. I've been using the Kubernetes and CoreOS >

[ansible-project] Concatenate text and variable for a key inside a dict

2016-11-28 Thread Guillaume Abrioux
Hi, I would like to define a dict in group_vars/all.yml where a key inside this dict would consist of a fixed string concatened to the result of : "{{ hostvars[inventory_hostname]['ansible_hostname'] }}". This should looks like following: ✘ root@lab:~/playbook# cat group_vars/all.yml --- my_di

[ansible-project] Performance issue when loading all host group vars before starting playbook

2016-11-28 Thread John Wadleigh
Hi everyone, We have a large 'hosts' file with many different host groups defined. When running ansible-playbook command with '-i' pointing to our hosts file, Ansible will then call our custom code in the VarsModule class of our vars plugin. Ansible calls the get_group_vars() function for each

Re: [ansible-project] Gitter chat/channel for Ansible?

2016-11-28 Thread Darryl Cauldwell
Greg, Might something like this https://github.com/ekmartin/slack-irc be good interim, so people can use either IRC or Slack and the messages sync between ? Cheers On Tuesday, 12 January 2016 21:51:15 UTC, Greg DeKoenigsberg wrote: > > On Sat, Jan 9, 2016 at 4:52 PM, Brandon Jozsa > wrote:

[ansible-project] ansible async module result in bind service is done

2016-11-28 Thread hao huang
ansible version : 2.1.1.0 - hosts: hhh gather_facts: no become: yes tasks: - block: - name: hhh conf shell: bash /tmp/hhh.sh async: 2000 poll: 0 register: update_hhh - name: check hhh async_status: jid={{ up

[ansible-project] Getting Access Denied while creating Cluster on Win2012 R2 using PywinRM

2016-11-28 Thread ashish chanda
Hi, I am using Ansible PywinRm to connect and run powershell on the remote windows 2012 R2 server. I am getting the error access denied on new cluster command on adding the second node to the cluster. Below are the connection details import winrm s = winrm.Session('192.X.X.X',auth=('adminis

[ansible-project] Re: a module to create Keystone endpoints

2016-11-28 Thread Jingjing Li
I have the same question, and I found an unofficial module which does the thing you want https://github.com/openstack-ansible/openstack-ansible-modules/blob/master/keystone_service It seems the official module lose this feature when it upgrated to a newer version.. On Tuesday, July 26, 2016 at 4

[ansible-project] MODULE FAILURE using Replace and with_together

2016-11-28 Thread John Galts
Hello, I'm getting a module failure when trying to use 'replace' and with_together. Is there something wrong with my script? thank you. Tasks: - name: Gather Current DB Settings - Database Name shell: grep -v "|" /tmp/directory{{ date }}/{{ item }}/application/config/production/datab

[ansible-project] Multi host with multi role project

2016-11-28 Thread mail
First of all: my apologies for the chosen subject. I can't think of anything better than this.. Anyway - what I'd like to accomplish is the following: I have a brand new, shiny, fresh host which I'll bootstrap with our current ansible playbooks. We set 2 host vars for our backup solution: backu

[ansible-project] Ansible goes into a infinite sleep mode when it tries to start jboss server as root user

2016-11-28 Thread Santhosh Chaitanya
Hi all, I am stuck with below strange issue that ansible halts or goes into sleep mode when trying to start jboss as a root user using ansible on redhat machine1 Accordingly below are the details of the scripts that are on redhat machine1 *ansible.cfg* [defaults] host_key_checking = Fals

[ansible-project] Error Msg: The pexpect python module is required

2016-11-28 Thread neha gupta
Hi I am using ansible (version 2.2) for installing a software, where I require "*expect*" to be used. I have installed the pexpect module (version 4.2) and Python (version 2.7) in the local and remote server. However, on running ansible script, getting following error: "module_name": "expec

[ansible-project] Need to get the network interface status.

2016-11-28 Thread lishyalak
Number of network interfaces varies in our environment and we have atleast 5 variants, hardcoding is not an option. This playbook need to check {{ ansible_interfaces }} and then get the status of all available interfaces active status. from the example snippet below "ansible_eth1": {

[ansible-project] Re: Access dict key when using with_subelements

2016-11-28 Thread General Luken
I have workaround for this. You basically have to use "include" as a function. Let's say your {{users}} structure looks like this: users: ssh_keys: - somekeyfdsfdsfdsfsdfsdyttytry - someotherkeyfdsryekfdlmgdfm In your main.yml there would be: - include: ssh_key.yml _users_ssh_k

[ansible-project] Proxmox network interface configuration: template error while templating string: Encountered unknown tag 'item'

2016-11-28 Thread Samuel Vandamme
Hi everyone I'm trying to setup multiple proxmox network interfaces for my containers with Ansible. Here is the code that I'm using. You can see in the netif property that I sometimes want to add a second interface to the container. - name: Create instances proxmox: vmid={{ item.id }}

[ansible-project] dellos6_command error on dell N2048

2016-11-28 Thread Ramiro de Zavalia
Hello, I'm testing dell06_command on a dell N2048 switch without luck. I have this simple playbook: --- - hosts: 10.10.10.10 gather_facts: no connection: local vars: cli: host: "10.10.10.10" username: "user1" password: "secret1" auth_pass: "secret2"

[ansible-project] Error creating Cluster on windows 2012 R2 Server through Ansible

2016-11-28 Thread ashish chanda
Hi, I am using ansible to create Cluster on windows 2012 R2 Server where i am getting issues like access denied on new cluster command on adding the second node to the cluster. I am using kerberos authentication since i needed to login using domain account as opposed to local account. Also i a

Re: [ansible-project] file module: absent recurse=yes and Directory not empty

2016-11-28 Thread santosh verma
Still same error: msg: rmtree failed: [Errno 39] Directory not empty - name: Removing jenkins folder file: path={{ base_dir }}/tomcat7/webapps/jenkins state=absent force=yes On Friday, April 4, 2014 at 11:41:55 PM UTC+5:30, Michael DeHaan wrote: > > Perhaps the force is cau

[ansible-project] MODULE FAILURE using Replace and with_together

2016-11-28 Thread John Galts
Hello, I'm getting a module failure when trying to use 'replace' and with_together. Is there something wrong with my script? thank you. Tasks: - name: Gather Current DB Settings - Database Name shell: grep -v "|" /tmp/directory{{ date }}/{{ item }}/application/config/production/datab

[ansible-project] Re: Conditional role "include_role:" doesn't work (with "when:"), neither with "with_items".

2016-11-28 Thread Lorrin Nelson
I am also seeing when: not work with include_role. The "a" reported above is just the first letter of Thiago's condition (ansible_hostname | search("stack-1-sql.*"). I've got a boolean, etcd_enabled, so my when: etcd_enabled produces "The conditional check 'e' failed" On Monday, November 21, 20

[ansible-project] Ansible logs in remote machine

2016-11-28 Thread dktgmn
Using a default ansible configure,when a Ansible command sended to a remote machine and executed in ssh,where can I find the command record or history in the remote machine to check the command be executed or not? -- You received this message because you are subscribed to the Google Groups "A

[ansible-project] Global variable to pas dynamic data between plays with different hosts

2016-11-28 Thread Pieter Voet
Hi all, I've been looking into this for some time now, and I think I definitely can use some help here. What I want is to set a variable from a task specific to one host from a group, with a value that is set dynamically by the task outcome. Then next, I want to use this variable by another pl

[ansible-project] Concatenate text and variable for a key in a dict

2016-11-28 Thread Guillaume Abrioux
Hi, I would like to define a dict in group_vars/all.yml where a key inside this dict would consist of a fixed string concatened to the result of : "{{ hostvars[inventory_hostname]['ansible_hostname'] }}". This should looks like following: ✘ root@lab:~/playbook# cat group_vars/all.yml --- my_di

[ansible-project] Launch powershell script with argument by ansible

2016-11-28 Thread jvieira
Hi everyone, My ansible version is : 2.2.0.0 I make a powershell script to deploy a new VM on vcenter. Ansible correctly work with windows system but i have some trouble. I would like ansible take my arguments for the script for each new host by the definition hots file in host_vars But I don

[ansible-project] Re: ansible play getting failed due to sudo issue

2016-11-28 Thread Rodolfo Casás
I think that is normal behaviour with sudo. Unless you specifically configure a to use sudo without password. Check doc about SUDO Rodolfo El viernes, 25 de noviembre de 2016, 16:25:58 (UTC+1), stac...@gmail.com escribió: > > > > Issue - > > [sysadm@ccldevcftsebs1 ~]$ sudo yum repolist -v >

[ansible-project] Is it possible to use files from the "playbook" layer for the "copy" module?

2016-11-28 Thread General Luken
Hi! What I mean by the title: In roles we can have a "files" directory, with files that could be copied to server. I would like to have those files outside of the role, they should be provided by my playbook and not the role. What is a recommended way of achieving it? Best wishes. -- You rece

[ansible-project] Unable to Install PostgreSQL using Ansible

2016-11-28 Thread Gustavo da Silva Carita
Hello Everyone, I'm new to Ansible, and I ended up having a problem with my playbook to install psql. I already tried everything and searched everywhere. When I perform the following task: - name: Ensure database is created > become_user: postgres > become: true > postgresql_db: name={{ d

[ansible-project] Creating a package module like the yum module

2016-11-28 Thread Peter Burns
Hi there, I'm trying to create an ansible module to install packages using a custom package management system. I want it to function like the core yum module says it does when used in a loop, i.e. "Instead of calling the module with a single package each time through the loop, ansible calls the

[ansible-project] Re: A "first time" unexpected templating error - what did I do?

2016-11-28 Thread burns498
Thank you for the response! For separate reasons, I ended up changing this to a local_action and then the issue never resurfaced. Still unsure why...and I've been monitoring it for awhile now. If the error reproduces I'll post the output and other info. Thanks for the help! On Monday, November

Re: [ansible-project] Store playbook name as a 'global' variable across plays?

2016-11-28 Thread burns498
Hello - Apologies for the late reply. I failed to see the update before. Thanks for the suggestion. I ended up defining this as a fact early on in my playbook. As for your question on roles, I do agree with you. I already redesigned the role setup to make more sense. Thanks! On Wednesday, Nove

Re: [ansible-project] Trying to hack a module, but external dependency cannot be found despite being installed

2016-11-28 Thread Brian Coca
My guess is that it is probably cause it is running 'python' and not 'python2', you can try running the setup module which includes the python executable information. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] ansible-playbook-sudo

2016-11-28 Thread naaga . wip
Hi, Can any one please let me know why to use "-sudo" flag in ansible-playbook command line. ansible-playbook-sudo -i /opt/*/*/ansible/inventories/dev/hosts /opt/*/*/ansible/playbooks/new_deployments.yml --extra-vars "artifact_url=https://*.war hosts=test1 app_name=welcome" Thanks -- Y

[ansible-project] Possible bug with nxos_reboot module?

2016-11-28 Thread Cody John
I've run into some issues using nxos_reboot module in 2.2.0.0. Given a very simple playbook: --- - name: Reboot TOR B hosts: test_b gather_facts: no connection: local vars: ansible_python_interpreter: /glide/bin/python27 cli: host: "{{ inventory_hostname }}" tasks: -