Thanks all answer.
I think ansible-pull command is fine,I like use ansible tools
在 2013年11月22日星期五UTC+8下午5时15分17秒,charles charles写道:
For example:
my ansible host: 192.168.1.2
web server: eth0: 192.168.1.3, eth1: 10.1.1.3
db server: 10.1.1.4
so far, I must login web server and then (ssh
Ok. Thanks for answer.
W dniu poniedziałek, 25 listopada 2013 17:11:01 UTC+1 użytkownik Tomasz
Leśniewski napisał:
Hi.
I've found that names of NIC aliases returned by setup module has changed
in ansible 1.4:
$ ansible --version
ansible 1.3.2
$ ansible foo -m setup | grep snat
On Mon, Nov 25, 2013 at 11:04 PM, James Martin jmar...@basho.com wrote:
Does this sound kosher?
Yes it does, this is almost the same approach I've taken. There's a
few gotcha's to be aware of, however.
- iptables has multiple tables (filter, nat, mangle, raw and security,
I believe), filter is
Many thanks for your replies.
I'm baffled, I seem to be doing exactly the same as you but can't get
postgresql installed correctly. Specifically, it doesn't do the postinstall
jobs like moving the default configuration files, creating the postgres
user and starting the database service (using
Yep that's what I thought.
Was just wondering if it might be defaulting to non-interactive mode (or
something like that) where it was omitting post-install jobs such as
creating the user, starting the service, etc.
On Tuesday, 26 November 2013 13:39:39 UTC, Brian Coca wrote:
ansible just
First question,
ansible --version ?
Second point
I obviously won't argue that Ansible should do hierarchical matching.
It completely does.
I'm having difficulty drawing the lines in between your lines of
questioning as you're not showing full ansible command line executions and
playbook
Yeah that's not really going to work well in current state, because the
system won't know to run the shell command.
There's no way to configure a regular shell account?
On Tue, Nov 26, 2013 at 8:28 AM, Asif Iqbal vad...@gmail.com wrote:
Once you ssh to arbor, you will need to type shell to
I'd be more than happy to improve the rds module. The question I have is
what's the best approach to take. The problem, as I see it, is that the
rds interface is rather complex, so trying to distill it down for Ansible
has the potential to be rather tricky. There are a number of both
This is great stuff, thanks!
On Tue, Nov 26, 2013 at 5:02 AM, Nick Groenen n...@travelbird.nl wrote:
On Mon, Nov 25, 2013 at 11:04 PM, James Martin jmar...@basho.com wrote:
Does this sound kosher?
Yes it does, this is almost the same approach I've taken. There's a
few gotcha's to be aware
yes, it is non-interactive, but in my case it still sets up (and starts)
the service, creates users and initializes db.
--
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
Hi,
I would like to use a FOR loop construct to create a multiple directories
like this:
{% for dir in temp_dirs %}
- name: {{ dir }} Directory
file: dest={{ repo_dest }}/var/{{ dir }} owner={{ apache_user }}
group={{ apache_group }} state=directory recurse=yes
{% endfor %}
my vars
Hi,
try ansible_ssh_port: http://www.ansibleworks.com/docs/faq.html#id2
2013/11/26 xiangjun zhang eased...@gmail.com
I have servers with different ssh ports, the default port is configured in
ansible.cfg, how can I override the remote_port setting with command line
argument? thanks
--
Hello,
I have a playbook that create a mysql DB and import an empty schema:
- name: create DB
mysql_db: name={{ db_name }} state=present login_host=127.0.0.1
- name: create schema
mysql_db: name={{ db_name }} state=import login_host=127.0.0.1
target=/create_tables.sql
From what i could
On Tuesday, November 26, 2013 8:58:01 AM UTC-5, Michael DeHaan wrote:
Yeah that's not really going to work well in current state, because the
system won't know to run the shell command.
There's no way to configure a regular shell account?
There is a way to provide regular shell account,
Hi there,
I'd like to be able to start 3 services that I am deploying by iterating
over one generic template that I have for them.
Is it possible to pass variables through to the template task using
with_items and a dictionary of variables? I had hoped that I'd be able to
use something like
On Monday, November 25, 2013 8:10:26 PM UTC-5, Michael DeHaan wrote:
I'm not familiar with Arbor Networks internals personally
Possible options:
try scp instead of SFTP in ansible.cfg
see if you can configure something to give you a login shell
just use raw commands
With raw I am
It looks like the mysql_db module will blindly run mysqldump wiht the
specified target file if it's specified, so yes it's currently expected
behavior.
What you would probably need to do is run an action before you call
mysql_db that checks to see if the database already exists and register a
Hi,
you can use notify in create DB to create schema. That way, it will be
called only on db creation.
David
Dne 26.11.2013 17:42 Fred Badel f...@never-mind.ch napsal(a):
Hello,
I have a playbook that create a mysql DB and import an empty schema:
- name: create DB
mysql_db: name={{
Now that ansible 1.4.0 is out, I'd like to start making use of some of the
new modules. But I'd like to make sure there are no surprises for people
using my playbooks.
So is there a way inside a playbook either to check the version of ansible
it is running under, or assert a minimum required
Here's my debug output for local_action: wait_for host={{
inventory_hostname }} port=22 state=stopped :
TASK: [2_aggregated_links | wait for the server to go down (reboot)]
**
127.0.0.1 EXEC ['/bin/sh', '-c', 'mkdir -p
$HOME/.ansible/tmp/ansible-1385501543.62-188179043733979 chmod
Hi James,
The playbook is available here:
https://github.com/analytically/hadoop-ansible
The roles that has the reboot here:
https://github.com/analytically/hadoop-ansible/blob/master/roles/2_aggregated_links/tasks/main.yml
Thanks!
On Tuesday, 26 November 2013 21:46:43 UTC, James Tanner
Yeah, so 1.2.2 is two versions back.
1.3 and 1.4 have both released.
In 1.3 and 1.4, you would write this statement as when: 'IS_MASTER and
pid_list.stdout != '
as you would not need the dollar signs.
I'd strongly recommend upgrading to 1.4 so you get the 4+ months of
bugfixes and other
Thanks Michael!,
Thank you for your quick response and your advice.
In 1.2.2 I had to write like this:
when: IS_MASTER == 'True' and pid_list.stdout != ''
for some reason the variable wasn't working as a boolean.
Anyways, I'll advice my boss to upgrade to Ansible 1.4.
Thank you again,
Here is the info:
I'm trying to send a json object to akamai with the uri module but it fails
saying that is not a valid json object but the debug message shows in the
right format.
here is the requeriments from akamai
:
Hi all,
Please forgive my ignorance if somebody already asked this and there are
already places somewhere that can help me with my issues.
1. I would love to know all the things that I can do in templates like the
for loops for host in groups_names and the likes.
2. Please separate the docs
When I'm trying to develop my play books while offline on my laptop (using
vagrant for my Ansible provisioned server) I'm seeing really long hangs on the
GATHERING FACTS task (as in the order of 3-5 minutes). After it eventually
times out (best guess) it proceeds as normal and everything works
I happen to like our organization and the way it's presented.
Ultimately, different people *do* learn differently, of course, and it's
hard to please everyone.
You may be interested in:
http://ansibleworks.com/docs/playbooks_loops.html
This conclusion that there is something wrong with variable parsing is
incorrect because the variable parsing is quite generic.
On Tue, Nov 26, 2013 at 5:50 PM, PePe Amengual jose.ameng...@gmail.comwrote:
Here is the info:
I'm trying to send a json object to akamai with the uri module but
Sorry, both the control machine (my MacBook Air) and the Ansible remote node
(my vagrant VM) are running perfectly fine (I can ssh into the Vagrant VM
without a problem, and Ansible eventually does run through the play book after
the 3-5 minutes pause on gathering facts completes. The only
On 27/11/2013 01:02, Steven Haddox wrote:
Sorry, both the control machine (my MacBook Air) and the Ansible remote node
(my vagrant VM) are running perfectly fine (I can ssh into the Vagrant VM
without a problem, and Ansible eventually does run through the play book
after the 3-5 minutes
root@llamacube:/tmp# time ansible doesnotexist.example.com -m ping -i
doesnotexist.example.com,
doesnotexist.example.com | FAILED = failed to transfer file to /ping:
ssh: Could not resolve hostname doesnotexist.example.com: Name or service
not known
Couldn't read packet: Connection reset by peer
FWIW, I'd prefer it if the error message didn't include the failed to
transfer file in this case. We should upgrade that part :)
On Tue, Nov 26, 2013 at 7:08 PM, Michael DeHaan mich...@ansibleworks.comwrote:
root@llamacube:/tmp# time ansible doesnotexist.example.com -m ping -i
sorry, this means a bug ?
On Tuesday, 26 November 2013 23:56:20 UTC, Michael DeHaan wrote:
This conclusion that there is something wrong with variable parsing is
incorrect because the variable parsing is quite generic.
On Tue, Nov 26, 2013 at 5:50 PM, PePe Amengual
My inventory file is big, I want to keep it clean, changing every line is
not so good.
On Wed, Nov 27, 2013 at 12:17 AM, David Karban da...@karban.eu wrote:
Hi,
try ansible_ssh_port: http://www.ansibleworks.com/docs/faq.html#id2
2013/11/26 xiangjun zhang eased...@gmail.com
I have
Add it to a group then.
On Tue, Nov 26, 2013 at 8:25 PM, xiangjun eased...@gmail.com wrote:
My inventory file is big, I want to keep it clean, changing every line is
not so good.
On Wed, Nov 27, 2013 at 12:17 AM, David Karban da...@karban.eu wrote:
Hi,
try ansible_ssh_port:
Nope, this means it's much better to ask what's wrong here, how might I do
this, than to jump in and say there's a bug in a particular module at the
first sign of trouble :)
It looks like your data structure is set quite correctly, but I'd probably
start with {{ urls | to_json }} in the body for
Hi guys,
Not sure if this has been resolved, but I'm getting really strange behavior
with my playbooks in version 1.4. This has nothing to do with --extra-vars,
but a boolean variable defined in the vars section. Or am I defining it
somewhat incorrectly?
Here is an example:
- hosts:
On Tuesday, November 26, 2013 9:44:37 AM UTC+11, Melissa Tan wrote:
After it is set, I'm faced with a password prompt when no password
required is already done. So it is actually executing sudo, but sudo isn't
setup to authorized the command that Ansible is pushing through. The
So I'd request everyone please don't reply to ancient threads, things
change and initial questions are seldom related to the old if you think
they might be.
Saving a conditional in a variable should probably not involve a template
statement, the need to do this in conditionals has been gone for
39 matches
Mail list logo