- 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
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
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
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
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
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?
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
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
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
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
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
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
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
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,
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
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
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
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
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.
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.
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
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
# 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
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
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
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
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,
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
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
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
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
31 matches
Mail list logo