Re: [ansible-project] understanding fetch module's security implications

2015-12-04 Thread Brian Coca
- All templating (variable substitution) is done on the 'controller', it makes no sense to send that data, plus the template to the targets and then have to install jinja2 to run it, get it back and then update the task, copy the updated module and run it remotely ... - the fact variables (what an

Re: [ansible-project] Run Handlers like a task

2015-12-04 Thread Brian Coca
no, but you can try something like this: ``` - debug: msg="execute {{handler}}" changed_when: True when: handler is defined notify: "{{handler}}" tags: ['handler'] ``` then use `--tags 'handler' -e 'handler="name of handler"' ` on the command line -- Brian Coca -- You received this mess

Re: [ansible-project] -f option in apache2_module

2015-12-04 Thread Brian Coca
Not currently, but you can open up a feature request in github for it to be implemented. -- Brian Coca -- 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 ansib

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread Brian Coca
i just tested this with release tarball, the issue of running w/o an install is that you don't have a hacking/env-setup in it. so i did this after downloading from releases.ansible.com/ansible/: tar xcvfz ~/Downloads/ansible-1.9.4.tar.gz -C ~/tmp/ cd ~/tmp/ansible-1.9.4 mkdir hacking cd hacking w

Re: [ansible-project] empty ansible_domain from setup

2015-12-04 Thread Brian Coca
this is the python code that figures out the domain: ` self.facts['fqdn'] = socket.getfqdn() ... self.facts['domain'] = '.'.join(self.facts['fqdn'].split('.')[1:]) ` ^ basically splits from fqdn after the first . , so "www.example.com" would return "example.com" socket is a core python library

[ansible-project] empty ansible_domain from setup

2015-12-04 Thread markham breitbach
I am running ansible 1.9.3 under FreeBSD 10.2 to manage other FreeBSD hosts. I am trying to figure out why one host comes back with ansible_domain undefined, when it is fine for another host. AFAIK both hosts are configured identically. Can someone tell me how the value for this is determined?

[ansible-project] Run Handlers like a task

2015-12-04 Thread Steve Malenfant
We have playbook that didn't have the force_handlers directive. They ended up failing and of course, they re-run instead and the handlers never got run for completed tasks. I've searched but couldn't find something related to run a specific tasks which would be the handler itself. Something nic

[ansible-project] -f option in apache2_module

2015-12-04 Thread Yoann DAVID
Since apache 2.4 on Debian to disable autoindex module we must confirm with "Yes, do as I say!" sentence or run a2dismod command with -f option : sudo a2dismod autoindex > [sudo] password for umanit: > WARNING: The following essential module will be disabled. > This might result in unexpected

[ansible-project] Unable to Authenticate to Satellite Datacenters Using Kerberos

2015-12-04 Thread Corwin Brown
Hiya everyone! Let me preface this by saying I'm traditionally a Linux admin, and am nearly clueless about everything Microsoft, including Active Directory, so please bare with me here. The problem is I'm trying to execute ansible WinRM commands against one of our datacenters, lets call it dc1

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Well, of course if you forget about "make install" (me) it won't work ... If you remember about it - it works. But using "make install" installs files into /usr/lib/python2.6/site-packages/ Is there any way I can keep all ansible related files in i.e. /opt/apps/ansible and not mess with native p

Re: [ansible-project] Retrieve ec2 facts

2015-12-04 Thread Brian Coca
ec2_facts needs to run from the host, use ec2_remote_facts for your scenario -- 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...@googl

[ansible-project] Re: Create Multiple Nginx Virtual Hosts with one Ansible role

2015-12-04 Thread Adithya Khamithkar
You can name the virtual hosts differently and you can use the template function. On Friday, December 4, 2015 at 8:41:45 PM UTC+5:30, Arbab Nazar wrote: > > Hi, > > How I can Create Multiple Nginx Virtual Hosts with one Ansible role, can > someone give me an idea? > > Thanks, > -- You receive

[ansible-project] Retrieve ec2 facts

2015-12-04 Thread Adithya Khamithkar
How to retrieve ec2 facts of a host using local action if the host is in the stopped state? -- 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+u

Re: [ansible-project] Create Multiple Nginx Virtual Hosts with one Ansible role

2015-12-04 Thread Brian Coca
2 ways, have the role take a list of vhost configs and loop over them. Or have it take a single one and call it once per vhost. -- 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,

[ansible-project] Create Multiple Nginx Virtual Hosts with one Ansible role

2015-12-04 Thread Arbab Nazar
Hi, How I can Create Multiple Nginx Virtual Hosts with one Ansible role, can someone give me an idea? Thanks, -- 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

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
I did this way as well. And no change - still the same error ... On Friday, December 4, 2015 at 2:29:57 PM UTC, Brian Coca wrote: > > Those don't work, they are autogenerated, go to releases.ansible.com > -- You received this message because you are subscribed to the Google Groups "Ansible Proj

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Just for the record: # echo $PYTHONPATH /opt/apps/ansible/lib: # echo $PATH /opt/apps/ansible/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin: /sbin:/bin:/usr/sbin:/usr/bin:/opt/IBM/nmon:/root/bin -- You received this message because you are subscribed to the Google Groups "Ansible Pr

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
And I have just tried this one with no change (still problem): https://releases.ansible.com/ansible/ On Friday, December 4, 2015 at 2:26:33 PM UTC, P wrote: > > This one: > https://github.com/ansible/ansible/archive/v1.9.4-1.tar.gz > > On Friday, December 4, 2015 at 2:24:52 PM UTC, Brian Coca wrot

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread Brian Coca
Those don't work, they are autogenerated, go to releases.ansible.com -- 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...@googlegroups.

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
This one: https://github.com/ansible/ansible/archive/v1.9.4-1.tar.gz On Friday, December 4, 2015 at 2:24:52 PM UTC, Brian Coca wrote: > > Are you using the release tarball or the github ones? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread Brian Coca
Are you using the release tarball or the github ones? -- 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...@googlegroups.com. To post to

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
I also downloaded ansible-1.9.4-1.tar.gz and still have the same problem: # ansible --version Traceback (most recent call last): File "/opt/apps/ansible/bin/ansible", line 36, in from ansible.runner import Runner ImportError: No module named ansible.runner -- You received this message b

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
# make clean Cleaning up distutils stuff rm -rf build rm -rf dist Cleaning up byte compiled python stuff find . -type f -regex ".*\.py[co]$" -delete Cleaning up editor backup files find . -type f \( -name "*~" -or -name "#*" \) -delete find . -type f \( -name "*.swp" \) -delete Cleaning up manpage

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread Brian Coca
try running 'make clean' as 'runner' does not exist in 2.0, it seems you are getting 1.9 files in the mix, might be old .pyc that wont be removed by switching branches. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] Re: Reusing a set of taks across many roles

2015-12-04 Thread Co S
I extensively use roles and now came to idea that other roles share some tasks in common. What I've done so far I've split the initial main.yml task file into pieces and use include to re-use these tasks from other roles. May be not an elegant solution but it works. -- You received this message

[ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
I've forgotten to say that this is on Red Hat 6.5. -- 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...@googlegroups.com. To post to th

[ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Yes, I did run "source ./hacking/env-setup". And this ansible is the installation on this server. There is no other (nor pip, tar.gz, etc). I have had similar error before but it turned out I had install ansible using pip. Now it is not that case. On Friday, December 4, 2015 at 1:01:04 PM UTC,

[ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread J Hawkesworth
Did you run source hacking/env-setup so that the paths can be set? I think I've had similar when I've got a package install of ansible and pulled the source code on the same machine. Hope this helps, Jon On Friday, December 4, 2015 at 12:42:11 PM UTC, P wrote: > > Hi all, > > I am tryin

[ansible-project] Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Hi all, I am trying to install ansible using "git clone" and it fails (have done that before a few times and it worked): # git clone https://github.com/ansible/ansible.git --recursive Initialized empty Git repository in /opt/apps/ansible/.git/ remote: Counting objects: 102057, done. remote: T

[ansible-project] Re: Reusing a set of taks across many roles

2015-12-04 Thread Markus Ellers
for ease of use I would store it in the same directory as your other playbooks. If you have a bigger / more complex setup I would recommend storing all the "shared" ymls in one location. Then make the path to those yml files a variable so you can move it around later without having to edit every

[ansible-project] Re: Why use Ansible

2015-12-04 Thread Fabricio Cruz
Hi Thomas !! Thanks !! Em quarta-feira, 2 de dezembro de 2015 16:38:27 UTC-2, Thomas Steinbach escreveu: > > Depending on how sophisticated your answer should be, i advice you > following great book: > https://valdhaus.co/books/taste-test-puppet-chef-salt-stack-ansible.html > > What I like o