Hi, I have a bash command of:
ansible beta -m template -a 'src=../templates/www.conf.j2
dest=/root/www.conf '
I need to specify a variable on the command line.
I tried specifying it in the -a string, but got an error that template only
accepts certain variables.
IF the template was in a pla
he .my.cnf needed to be. Since I log in as
root, I figure it's /root/.my.cnf.
My /root/.my.cnf is:
[mysql]
user=root
password=xxx
[mysqldump]
user=databasebackup
password=xxx
Do I need another section, perhaps? What else might be wrong?
Thanks,
Ed Greenberg
--
You rece
uot;
I've tried quoting the entire thing with both single quotes and then with
double quotes, escaping the embedded quotes with backslashes. I've tried
putting quotes in jinja curlies. such as {{ '"' }} . Just about every
permutation I can think of.
Is this even pos
Hi, I have an ansible module that adds and removes servers from the load
balancer. If I do:
ansible localhost -m modulename -a 'servername=foo inbalancer=present'
it adds the module to the load balancer and reports changed if it wasn't
there before, and not changed if it was already there.
t I don't understand is how to run the playbook.
I tried:
ansible-playbook secgroup.yml -e'cidr=xxx.xxx.xxx.xxx/32 rule_desc=web7
but the playbook timed out since the above endpoint doesn't answer ssh.
So how do I specify what IP/Proto ansible is to use to connect?
Many than
This is how I solved the problem in rsyslog.conf:
if $pri-text == 'user.notice' and $msg contains 'ansible' then {
/var/log/ansible.log
stop
}
I put this pretty close to the top of the rsyslog.conf, above GLOBAL
DIRECTIVES.
--
You received this message because you are subscribed to t
I have a task logging to user.notice, and I can't change it.
Ansible also logs to user.notice, and I'm wondering if I can change where
it does that on a global basis. One of the locals would be nice.
Any way to do this?
Ed Greenberg
--
You received this message because you are
I have this:
TASK [debug]
***
ok: [localhost] => {
"changed": false,
"msg": {
"changed": false,
"volume": {}
}
}
I'd like to test for this condition, where volume is an empty dict.
I tried
when volu
Hi, Folks,
I'd like to be able to test for a volume by name before trying to create
it. If the name exists, the playbook needs to fail, so that it can be
called with a new name.
Nothing was obvious in the documentation for rax_cbs.
Anything I try seems to create a volume. I left out state= an
rd is failing because it
does not have a record_type.
So adding the record_type (which is TXT by the way) I get a success, but
the module created a second TXT record with the same name, which makes
sense after reading the code.
What I don't see is how a record ever gets updated (or deleted
Now, I know what it looks like, and what it looked like before, but I don't
know how to call the dnsmadeeasy module to put it back.
What seems to be needed is a "update record by id" function.
Any suggestions?
Thanks,
Ed Greenberg
--
You received this message because you are s
For certain values of idempotent :)
I notice that the make module shows changed every time.
I'm trying to make mod_security:
- name: make modsecurity
make:
chdir: /root/modsecurity-2.9.1
every time this runs, it shows changed.
Nothing in the docs indicates that there is a way t
We have a collection of load balanced web servers, and we have cron jobs
spread across the server base.
I would like to manage these cron jobs in Ansible.
The current state is to have all the cron jobs on all the servers,
disabled, and then to selectively enable the ones that need to run on
but didn't find anything that was
a simple as what I'm looking for.
Can somebody point me appropriately?
Thanks,
Ed Greenberg
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop rec
Can somebody help me get this to work?
The colon following NOPASSWD is causing me fits.
- name: add permission for nrpe to access vzlicview
action: lineinfile dest=/etc/sudoers regexp=^nrpe line="nrpe
ALL=(ALL) NOPASSWD: /usr/sbin/vzlicview" state=present
I've tried a bunch of perm
I fixed this with: echo -n '{"changed": "true"}'
Note that the quotes around "changed" and "true" were essential.
Thanks all
--
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 i
r\n",
"parsed": false
}
This module, rescued from an old (pre 1.0) installation of ansible, used
to succeed, so I wonder, what changed, or what I might have done wrong.
This is Ansible 1.8.2-1.el6 from the epel repo, running on centos 6.5.
Any help welcome.
Thanks,
Ed Gr
17 matches
Mail list logo