Thanks Jon, this solved my issue. I didn't know about this convertto-Json
thing and it seems to be very useful. The only problem is the raw module
which would still require lot of string operations to find the desired
value.
Using "Get-PsDrive C |select-object Free|ConvertTo-json", i get the va
Thanks Greg, maybe you want to improve the message there there.
...And maybe targeting systemd for service orchestration is something that
can be done down the road
On Tuesday, July 12, 2016 at 11:51:20 PM UTC-7, Greg DeKoenigsberg wrote:
>
> On Tue, Jul 12, 2016 at 8:10 PM, Hristo Stoyanov > wr
I am wondering if there is any recommended approach for passing filename
paths across roles.
As an example, take a look at
https://bitbucket.org/neubyr/ansible-example/src repository. There are two
roles myapp and webserver.
* webserver role configures webserver and accepts custom configura
My guess it is for nxapi API.
On Friday, March 25, 2016 at 6:41:02 PM UTC-7, Roger Gomez wrote:
>
> Normally when we use regular plays, we define a group of hosts and all the
> tasks in the playbook are executed in the list of hosts defined. For the
> case of the Cisco modules we need an additio
I just discovered this issue as well, with various random ssh connection or
generic authentication/permission failure messages, some occurring after a
play successfully passed a task or two. It occurred very consistently with
many CentOS 7 t2.nano hosts. A 2-minute pause after waiting for ssh
l
Sorry to hear this, hope you can go back to a snapshot or similar?
Can't really think why it would be different.
I run the script like this:
- name: set auto logon
script: "setSecureAutoLogon.ps1 -Username {{ automation_user }} -Domain
{{ windows_domain_name }} -Password {{ automation_passwor
I tried this and it worked fine but now my ansible profile is all messed up
and many other tasks in my playbook are failing. My USERPROFILE is
supposed to be C:\\Users\\ansibleAdmin but now it shows up as
C:\\Users\\ansibleAdmin.DOMAIN or sometimes C:\\Users\\Temp.
On Wednesday, May 11, 2016 a
Kai,
On 13/07/16 15:27, Kai wrote:
Mark, Toshaan,
thanks for your answers.
So it's not possible using only the provided modules, you have to invoke
shell commands as well.
Well, it should be possible, with the virt module, run a install XML and
then run the post install XML, then you would on
Mark, Toshaan,
thanks for your answers.
So it's not possible using only the provided modules, you have to invoke
shell commands as well.
You both use a module "qemu-img" which doesn't seem to be provided with
ansible by default!?
Thanks & cheers, Kai
On 13-07-16 14:25, Toshaan Bharvani | VanTos
Hi all,
Ansible Version 2.1.0 installed via pip
I have a strange problem with a module in a roles library path.
This is the structure:
roles/elasticsearch/
roles/elasticsearch/library/
roles/elasticsearch/library/elasticsearch_plugin.py
If I execute
ansible-playbook playbooks/elasticsearch/cl
I think I had something like this. I think I fixed it by changing to 'yaml
style' arguments instead of the key=value arguments. So try something like:
jira:
description:something
issuetype: Bug
operation: create
password:
project: xxx
summary:test
uri: https://hostname.c
Try something like this:
Get-PsDrive C |select-object Free|ConvertTo-json
You should then be able to use 'register' to capture the result and make
use of it.
By the way I found this which has a lot of good starting points for
converting unix toolbox commands into powershell
https://www.gitb
On 13/07/16 14:21, Mark Janssen wrote:
You can run a kickstart or preseed installation, import disk-images or
do various other things... For example see (an old version) of my
provisioning config:
https://github.com/sigio/sigio-provisioning
Here is the one I use :
https://github.com/to
You can run a kickstart or preseed installation, import disk-images or do
various other things... For example see (an old version) of my provisioning
config:
https://github.com/sigio/sigio-provisioning
These days I use something a bit different, which isn't in a releasable
form at this time.
On
On Jul 12, 2016 8:51 AM, "mandy galligan" wrote:
>
> I've recently installed first Ansible 2.2 by cloning the source to my
Ubuntu 14.04 host as per
http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu
>
> The install went fine after running
>
> source ./hacking/en
Hello Team ansible.
Since upgrade to 2.1.0.0, I cannot use the jira module anymore.
Error message is "fatal: [hostname]: FAILED! => {"changed": false,
"failed": true, "msg": "dictionary update sequence element #0 has length 1;
2 is required"}"
The playbook Looks like
- hosts:
tasks:
I am trying very hard to get a numerical value of free disk space on a
windows server 2012 R2 machine, but couldn't get it so far. All the
commands that are available for listing the disk space information - they
are not providing the output in proper format. Here are a few commands i
tried:
*
On 13.07.2016 12:29, Igor Cicimov wrote:
On Wednesday, July 13, 2016 at 7:21:08 PM UTC+10, Kai Stian Olstad
wrote:
No.
All notify will run at the end an in the order they are in handlers
file.
I guess same goes in case of different tasks calling different handles?
Like:
- task1
notify:
On Wednesday, July 13, 2016 at 7:21:08 PM UTC+10, Kai Stian Olstad wrote:
>
> On 13.07.2016 10:25, Igor Cicimov wrote:
> > - name: template configuration file
> > template: src=template.j2 dest=/etc/foo.conf
> > notify:
> > - restart memcached
> > - restart apache
> >
> >
>
Ah, just an secure e-mail. Ok.
onsdag 13. juli 2016 11.35.06 UTC+2 skrev Werner Flamme følgende:
>
> Did you even look at the page Kai sent the link to?
>
> You can write something like
>
> [nodes]
> 192.168.137.146 ansible_user=pi
>
> but "p...@192.168.137.146 " is senseless.
>
> HTH,
> Wer
Thank you so much, that worked! What's that atachment?
onsdag 13. juli 2016 11.35.06 UTC+2 skrev Werner Flamme følgende:
>
> Did you even look at the page Kai sent the link to?
>
> You can write something like
>
> [nodes]
> 192.168.137.146 ansible_user=pi
>
> but "p...@192.168.137.146 " is se
Sorry, I took a look at it. Just didn't get it, i'm very new to this..Thank
you for responding^^
onsdag 13. juli 2016 11.35.06 UTC+2 skrev Werner Flamme følgende:
>
> Did you even look at the page Kai sent the link to?
>
> You can write something like
>
> [nodes]
> 192.168.137.146 ansible_user
Did you even look at the page Kai sent the link to?
You can write something like
[nodes]
192.168.137.146 ansible_user=pi
but "pi@192.168.137.146" is senseless.
HTH,
Werner
Jørgen Høyer [13.07.2016 11:29]:
> My file looks like this:
>
> [nodes]
> pi@192.168.137.146
>
> Only two lines. It's c
My file looks like this:
[nodes]
pi@192.168.137.146
Only two lines. It's called hosts.
Is that not the right way to create an inventory?
onsdag 13. juli 2016 11.11.21 UTC+2 skrev Kai Stian Olstad følgende:
>
> On 13.07.2016 10:52, Jørgen Høyer wrote:
> > My project is to set up a sensor network
On 13.07.2016 10:25, Igor Cicimov wrote:
- name: template configuration file
template: src=template.j2 dest=/etc/foo.conf
notify:
- restart memcached
- restart apache
does this guarantee that memcached is always going to be restarted
before
apache when the handles get flushed?
On 13.07.2016 10:52, Jørgen Høyer wrote:
My project is to set up a sensor network of several nodes. I want to
use
Ansible to configure all nodes through ssh, so I downloaded ansible
with
pip and generated a ssh keypair. I then copied the key from the master
to
the node I am testing on. I also
One last thing:) if i run ansible - i get at the end of the output:
ERROR! Missing target hosts
--
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-
One more thing. If i run ansible all -m ping - i get this:
root@raspberrypi:/home/pi# ansible all -m ping -
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
ESTABLISH SSH CONNECTION FOR USER: None
SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o
C
My project is to set up a sensor network of several nodes. I want to use
Ansible to configure all nodes through ssh, so I downloaded ansible with
pip and generated a ssh keypair. I then copied the key from the master to
the node I am testing on. I also edited the host file with:
[node]
pi@###.
Hi,
I can't find anywhere in the documentation any mention of the task order
executed under notify. Having the example from the web docs:
- name: template configuration file
template: src=template.j2 dest=/etc/foo.conf
notify:
- restart memcached
- restart apache
does this guar
30 matches
Mail list logo