Hi,
I am installing a fresh ansible tower on my localhost on ubuntu 16.04LTS.
This is my first experience with the tower.
When I run the setup.sh script, I get this error,
It is on this task,
< TASK [packages_ubuntu : install apt repository keys] >
Below is the error,
failed: [localhost]
Running the playbook below and wondering whats the correct syntax so I can
use a variable within the find statement below
This line is in question -
when: p.stdout.find"{{('user')}}" != -1
This would be correct without a variable
when: p.stdout.find('daniel') != -1
How do I do this with
Hello,
вторник, 27 юни 2017 г., 16:23:22 UTC-4, Brian Coca написа:
>
> several ways, here are 2:
>
> local_action: shell hostname
> register: hostname
>
> or
>
> lookup('pipe', 'hostname')
>
Both ways work. Thank you for your help.
Regards
Rambius
--
You received this message because you
several ways, here are 2:
local_action: shell hostname
register: hostname
or
lookup('pipe', 'hostname')
--
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
Figured out a different solution. I added this conditional to my task:
when: not ansible_check_mode
Thanks for the help!
On Tuesday, 27 June 2017 13:22:56 UTC-6, Ryan Groten wrote:
>
> One slight wrinkle, my example wasn't exactly what I'm trying to do.
> Here's my real until loop:
>
> until:
One slight wrinkle, my example wasn't exactly what I'm trying to do.
Here's my real until loop:
until: cluster_health.json.status | default("green") == "green"
That fails with the error "'dict object' has no attribute 'json'"
I think the difference is that my value is two attributes deep (ie:
That works just fine, thanks Kai!
On Tuesday, 27 June 2017 12:17:03 UTC-6, Kai Stian Olstad wrote:
>
> On 27. juni 2017 20:12, Kai Stian Olstad wrote:
> > On 27. juni 2017 19:40, Ryan Groten wrote:
> >> Thanks for the response Kai, in this case I want the task not to run
> >> at all
> >> in ch
I have found same problem on CentOS, and I am using Unarchive module for my
.tar.gz files which are downloaded using curl, it fails me sometimes. Have
this one been solved?
Thanks,
Catie
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To u
BM> When wanting to namespace variables in a role, is it typical to use a
BM> hash, or a prefix? Is there a best practice for this?
There are pros and cons either way. Off the top of my head, using a hash
lets you iterate over it easily, and IMHO looks nicer; but you can't (as
far as I know) add e
On 27. juni 2017 20:12, Kai Stian Olstad wrote:
On 27. juni 2017 19:40, Ryan Groten wrote:
Thanks for the response Kai, in this case I want the task not to run
at all
in check mode, only execute the loop when the play is run in execute
mode.
Than you can do this
until: (result | default(0)).
On 27. juni 2017 19:40, Ryan Groten wrote:
Thanks for the response Kai, in this case I want the task not to run at all
in check mode, only execute the loop when the play is run in execute mode.
Than you can do this
until: (result | default(0)).rc | default(0) == 0
--
Kai Stian Olstad
--
You
Hi all, we're happy to announce that Ansible 2.3.2 RC1 is available for
testing.
This release fixes quite a few bugs since the 2.3.1 release, some of which
are:
* Re-enabled non-pipelined mode for winrm/powershell as a work-around for
connection plugins that don't support pipelining.
* Fixed a bu
Thanks for the response Kai, in this case I want the task not to run at all
in check mode, only execute the loop when the play is run in execute mode.
On Tuesday, 27 June 2017 11:26:06 UTC-6, Kai Stian Olstad wrote:
>
> On 27. juni 2017 19:19, Ryan Groten wrote:
> > Using a standard do-until loo
On 23. juni 2017 17:19, Jon Williams wrote:
Any ideas how to get to the bottom of / solve this will be gratefully
received!
If the equipment support sftp, scp, ftp or some other transfer protocol
maybe just use that.
--
Kai Stian Olstad
--
You received this message because you are subscribe
On 27. juni 2017 19:19, Ryan Groten wrote:
Using a standard do-until loop like this:
- shell: /bin/true
register: result
until: result.rc == 0
retries: 5
delay: 10
Anytime I run the playbook in check mode this task will fail (because the
result variable is no
Using a standard do-until loop like this:
> - shell: /bin/true
> register: result
> until: result.rc == 0
> retries: 5
> delay: 10
Anytime I run the playbook in check mode this task will fail (because the
result variable is not set). It seems like the until part of
Hello,
I have a mail task that sends some log files and I would like to make it
more clear what process generated them:
- name: send logs
mail:
host: smpthost
port: 25
from: from@host
subject: "Logs Files"
body: "Please review the attached logs f
For tower questions and support please utilize https://access.redhat.
com/products/ansible-tower-red-hat
This mailing list is for the open source ansible project.
On Fri, Jun 23, 2017 at 3:39 AM, DM wrote:
> Hi!
>
> I was wondering is it possible to change Ansible Tower notification (
> email
Le 27/06/2017 à 14:29, Mehdi B a écrit :
> Hi,
>
> Python 2.7 on centos.
>
> Installed Ansible from epel & have 2.3.0 and installed azur using pip
> install azur --upgrade. The stack looks ok but this is messy over
> azurRM modules.
>
> M B
>
> On Tuesday, June 27, 2017 at 12:18:35 PM UTC+2, Jea
Ansible AzurRM module will only work with 2.0.0RC5 otherwise it will blow
out. Seem there is a back check that don't detect well that 2.0.0 is the
release and it should work.
M B
On Tuesday, June 27, 2017 at 12:18:35 PM UTC+2, Jean-Yves LENHOF wrote:
>
>
>
> Le 27/06/2017 à 11:28, Mehdi B a écr
Hi,
Python 2.7 on centos.
Installed Ansible from epel & have 2.3.0 and installed azur using pip
install azur --upgrade. The stack looks ok but this is messy over azurRM
modules.
M B
On Tuesday, June 27, 2017 at 12:18:35 PM UTC+2, Jean-Yves LENHOF wrote:
>
>
>
> Le 27/06/2017 à 11:28, Mehdi B
I double-checked my test case, and I can can confirm that the indentation
is as you suggest, where the register: is aligned with the win_stat.
Copying and pasting didn't work out so well in the post :-/
On Tuesday, June 27, 2017 at 2:25:52 AM UTC-4, Daniel JD wrote:
>
> I think your indention is
Le 27/06/2017 à 11:28, Mehdi B a écrit :
> Hi,
>
> Getting this error:
>
> ansible-playbook -i inventory.azur demo.yml
>
> PLAY [localhost]
>
>
>
> TASK [Gathering Facts]
> ***
Hi,
Getting this error:
ansible-playbook -i inventory.azur demo.yml
PLAY [localhost]
TASK [Gathering Facts]
***
On 23.06.2017 10:27, Phillip wrote:
I've run into a snag and feel like an idiot because I can't seem to
figure
it out. you can filter through complex data by doing {{ var.sub.data }}
this works great but what about when that data has it's own array? A
perfect example would be something like eth0
25 matches
Mail list logo