Re: [ansible-project] absolute import error for centos 5 environment

2017-12-21 Thread Oğuz Yarımtepe
machines (it still required python-2.6 or greater on the controller > but you could manage machines with only python 2.4 installed ). > > -Toshio > > On Dec 20, 2017 5:48 AM, "Oğuz Yarımtepe" wrote: > >> Hi, >> >> While i am just testing ping adhoc com

[ansible-project] absolute import error for centos 5 environment

2017-12-20 Thread Oğuz Yarımtepe
Hi, While i am just testing ping adhoc command for my Centos5 environment below is the error i got $ ansible all -i tmp3.txt -m ping -u root -k TESTSRV | FAILED! => { "changed": false, "failed": true, "module_stderr": "", "module_stdout": " File \"/tmp/ansible_nEiCUn/ansible_

[ansible-project] no vmware module to gather vm facts with datastore and cluster information

2017-10-30 Thread Oğuz Yarımtepe
Hi, I am trying get VM facts from my VMware 6.5 environment and trying vmware_guest_facts. Below is my tasks/main.yml --- - name: Gather facts from standalone ESXi server having datacenter vmware_guest_facts: hostname: osvvca02.foo.net username: some_user_name_here password: passwo

[ansible-project] adding vcenter to tower caused hosts displayed with ids

2017-10-28 Thread Oğuz Yarımtepe
I added VMWare VCenter credential typt to AWX interface and also added source of my VCenter. I can see the vms on my VCenter but all are imported with their name_id format which i dont want. How can i tell AWX (Tower) to import VCenter vmc with just thier name or display them as their names? --

[ansible-project] howto use using external api to fill the survey forms for AWX

2017-10-12 Thread Oğuz Yarımtepe
Hi all, I am testing AWX. I want to create custom surveys before running my job template and wondering whether i can fill multichoice forms from an external api and let the user choose those values? Any example or documentation about it? -- You received this message because you are subscribed

Re: [ansible-project] using ansible with spawn is preventing the inventory process

2017-06-21 Thread Oğuz Yarımtepe
13 AM, Madhu wrote: > There is a default time out value for expect. That's why its timing out. > To disable the timeout, we are setting as -1. I don't think its ansible > issue. > > On Wed, Jun 21, 2017 at 10:09 PM, Oğuz Yarımtepe > wrote: > >> The lookup method

Re: [ansible-project] using ansible with spawn is preventing the inventory process

2017-06-21 Thread Oğuz Yarımtepe
ore the spawn command. That should solve the issue. > > Thanks, > Madhu > > Sent from my iPhone > > On Jun 21, 2017, at 3:21 PM, Oğuz Yarımtepe > wrote: > > Great tip. > > Here is my folder structure: > > group_vars/all > > some_playbook/playbook.yml

Re: [ansible-project] using ansible with spawn is preventing the inventory process

2017-06-21 Thread Oğuz Yarımtepe
w this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/CACVha7fE3gXviKZyynV9xKY_ > myec1ND%2BYWHMcuSqyG61RbuH7g%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- Oğuz Yarımtepe http://about.me/oguzy -- You received this me

Re: [ansible-project] using ansible with spawn is preventing the inventory process

2017-06-21 Thread Oğuz Yarımtepe
sible-project/CACVha7e7Dbp%3Dt%2BoNeRGZEewEvVdVCvzeuGEJh3_ > oLuM2UmuobQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- Oğuz Yarımtepe http://about.me/oguzy -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] using ansible with spawn is preventing the inventory process

2017-06-21 Thread Oğuz Yarımtepe
t; 2BFePwnsOREO_j%3DEum2brKOShgA%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- Oğuz Yarımtepe http://about.me/oguzy -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from thi

[ansible-project] using ansible with spawn is preventing the inventory process

2017-06-21 Thread Oğuz Yarımtepe
Hi, I am using ansible-playbook at a script and passing password to t. Below is how i used it: run.sh #!/bin/bash ... /bin/expect <<- DONE spawn ansible-playbook -i $1 $2 -u $Username -k --become-user root --become-method sudo --become expect "SSH password: " send "$

[ansible-project] best way to log to the splunk

2016-12-18 Thread Oğuz Yarımtepe
What is the best way to log to the splunk while using ansible from cli? Regards. -- 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...@

[ansible-project] bastion host type connection to ansible

2016-12-16 Thread Oğuz Yarımtepe
How can use ansible with the below ssh.cfg Host test Hostname 10.35.74.241 User oyarimtepe@syslnx#host.foo@machine1.host.foo.com I am trying to connect machine1. The above settings let me connect with ssh test 10.35.74.241 is working like a jump host. I created ansible.cfg as [

Re: [ansible-project] bigip_pool module not found

2016-12-15 Thread Oğuz Yarımtepe
igip_pool module. > Do any other modules work? > > On Thu, Dec 15, 2016 at 9:11 AM, Oğuz Yarımtepe > wrote: > > Any more comment? > > On Thu, Dec 15, 2016 at 3:17 AM, Oğuz Yarımtepe > wrote: > > (venv) ➜ ansible-playbooks git:(master) ✗ ansible --version > ans

Re: [ansible-project] bigip_pool module not found

2016-12-15 Thread Oğuz Yarımtepe
Any more comment? On Thu, Dec 15, 2016 at 3:17 AM, Oğuz Yarımtepe wrote: > (venv) ➜ ansible-playbooks git:(master) ✗ ansible --version > ansible 2.2.0.0 > config file = > configured module search path = Default w/o overrides > > On Thu, Dec 15, 2016 at 3:15 AM, Tim wro

Re: [ansible-project] bigip_pool module not found

2016-12-14 Thread Oğuz Yarımtepe
6 at 5:11 PM, Oğuz Yarımtepe > wrote: > >> /Users/my_username/git/ansible-playbooks/venv/bin/python >> >> On Thu, Dec 15, 2016 at 3:09 AM, Tim wrote: >> >>> What is the full path to your venv python interpreter? >>> >>> On Wed, Dec 14,

Re: [ansible-project] bigip_pool module not found

2016-12-14 Thread Oğuz Yarımtepe
/Users/my_username/git/ansible-playbooks/venv/bin/python On Thu, Dec 15, 2016 at 3:09 AM, Tim wrote: > What is the full path to your venv python interpreter? > > On Wed, Dec 14, 2016 at 5:00 PM, Oğuz Yarımtepe > wrote: > >> I removed the ansible.cfg and retried a

Re: [ansible-project] bigip_pool module not found

2016-12-14 Thread Oğuz Yarımtepe
t; you shouldn't even need to include a roles path. What happens if you just > remove the ansible.cfg file? > > -tim > > On Tue, Dec 13, 2016 at 5:35 AM, Oğuz Yarımtepe > wrote: > >> At my virtualenv >> >> >> Here is my ansible.cfg >> >

[ansible-project] bigip_pool module not found

2016-12-13 Thread Oğuz Yarımtepe
At my virtualenv Here is my ansible.cfg [defaults] host_key_checking = False library =/path/to/ansible-playbooks/venv/lib/python2.7/site-packages/ansible /modules And here is my f5-text.txt localhost] ansible_connection=local ansible_python_interpreter=/Users/oyarimtepe/git. gittigidiyor/ans

[ansible-project] right usage of ansible v2 api with python

2016-11-23 Thread Oğuz Yarımtepe
I am having trouble about finding the right syntax for running a playbook with ansible api below is my code #!/usr/bin/env python import os import sys import tempfile import time from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import Variab

[ansible-project] module (setup) is missing interpreter line error while running the python api

2016-10-25 Thread Oğuz Yarımtepe
47 ansible_python_interpreter=python ansible_user=root ansible_ssh_pass= Somehow when i run the python code, it is not able to connect to the remote host. So is there any wrong usage above? Is the inventory right? I even tried with removing ansible variabled at the line, nothing changed. Any idea?

Re: [ansible-project] inventory not being able to read when using ansible 2 api

2016-10-24 Thread Oğuz Yarımtepe
il.com > <https://groups.google.com/d/msgid/ansible-project/CACVha7cTCgv%2BGXOjcGXhewNSQT-B7CPM3%3DYPGL_ryG6yiD7rOw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Oğuz Yarımtepe http://about.me/oguzy -- Y

Re: [ansible-project] inventory not being able to read when using ansible 2 api

2016-10-24 Thread Oğuz Yarımtepe
7cTCgv%2BGXOjcGXhewNSQT-B7CPM3%3DYPGL_ryG6yiD7rOw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Oğuz Yarımtepe http://about.me/oguzy -- You received this message because you are subscribed to the

Re: [ansible-project] inventory not being able to read when using ansible 2 api

2016-10-24 Thread Oğuz Yarımtepe
eb visit https://groups.google.com/d/ > msgid/ansible-project/CACVha7cTCgv%2BGXOjcGXhewNSQT- > B7CPM3%3DYPGL_ryG6yiD7rOw%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CACVha7cTCgv%2BGXOjcGXhewNSQT-B7CPM3%3DYPGL_ryG6yiD7rOw%40mail.gmail.com?utm_medium=email&utm_s

[ansible-project] inventory not being able to read when using ansible 2 api

2016-10-24 Thread Oğuz Yarımtepe
Here is my structure. ✗ tree -L 2 . ├── ansible.cfg ├── ansible.cfg.bak ├── group_vars │ ├── default │ └── default.bak ├── hosts ├── playbook.yml ├── playbook_hostname.yml ├── playbook_ip.yml ├── roles │ ├── hostname │ ├── ip │ └── satellite When i run the below code, i am not able to

[ansible-project] ansible 2 api usage error

2016-10-21 Thread Oğuz Yarımtepe
Below is my code sample to run a simple playbook on a host #!/usr/bin/env python import os import sys import tempfile import time from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.inventory import Inventory

[ansible-project] ansible api 2 usage

2016-09-19 Thread Oğuz Yarımtepe
Hi all, I am having trouble about using the ansible 2 api. Below is my code: #!/usr/bin/env python import os import sys import json from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.inventory import Invento