Hi,
I have an additional question. I read the docs yesterday and saw that
groups_vars are not supported inside the roles directory structure. So I
moved them from the role structure into the group_vars directory adjacent
to my inventory file. But I stick with the error that the variable is
Hi,
ansible-playbook -i hosts site.yml - -c paramiko
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 324, in
sys.exit(main(sys.argv[1:]))
File "/usr/bin/ansible-playbook", line 157, in main
inventory = ansible.inventory.Inventory(options.inventory,
I don't know anything about Power Shell, but to return variables to
Ansible, you need to return them in JSON format under the 'ansible_facts'
key.
See
http://docs.ansible.com/ansible/dev_guide/developing_modules_general.html#module-provided-facts
--
You received this message because you are
Didn't state explicitly, but the code above is not working and is the
Module that I am trying to get integrated.
--
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
So here is the script that I am trying to do. rough form of it is
query installed programs
get display name and target_exe
add to variable to be returned by module
iterate over returned paths and do win_file_version on target_exe
Rough code as of now is...
#!powershell
# WANT_JSON
#
I have a windows installer that fails when executed via Ansible. This
installer connects to a SQLServer database during the install. It fails
when attempting to connect to the database.
ansible_winrm_kerberos_delegation is set and works fine when connecting to
file shares. Database
On 20. feb. 2017 17:46, Acrobis Nubian wrote:
Hi all,
If someone could help me on the following:
I am trying to automate as maximum as possible the addition of authorized
keys to my new remote servers by doing the below playbook, but I am getting
the following error:
On 17. feb. 2017 22:24, Matt WH wrote:
Hi everyone,
I'm working on an Ansible setup where it would be extremely helpful to be
able to test roles and changes to a role before they were moved into the
roles folder used by ansible, as defined in the /etc/ansible/ansible.cfg
file. Ideally it could
Yes, you are absolutly right. What a stupid mistake.
Thanks.
Am 20.02.2017 5:47 nachm. schrieb "Brian Coca" :
> group/host vars directories need to be adjacent to play or inventory,
> they are not supported inside roles.
>
>
> --
> Brian Coca
>
> --
> You received
Maybe I was a tad over zealous in my last post. Basically what I am trying
to do is gather a bunch of entries about multiple files such that I get the
following information returned so that I can then iterate over it and call
a different module using the "path" and gather the information using
Hi everyone,
I'm working on an Ansible setup where it would be extremely helpful to be
able to test roles and changes to a role before they were moved into the
roles folder used by ansible, as defined in the /etc/ansible/ansible.cfg
file. Ideally it could check all the roles in a specified
Hi,
I am presently using Octopus deploy for deploying .Net applications. I was
wondering if it can be replaced by Ansible, I am playing around with
Ansible for cloud provisioning, it will be great if it could also help out
with the application deployments.
So bearing this in mind can someone
Hey Everyone,
I am running ansible version 1.8.4.
Running the same task on multiple Hosts list -
---
- hosts: all
gather_facts: no
tasks:
- name: Stopping OSSEC
service:
name: ossec-hids
state: stopped
- hosts: all
gather_facts: no
tasks:
-
Hi,
since ansible's ip filter are broken [1] and don't look like they get
fixed anytime soon I'm wondering if there are any other easy options?
thanks,
nusenu
[1] https://github.com/ansible/ansible/issues/14829
--
You received this message because you are subscribed to the Google Groups
Hi all,
If someone could help me on the following:
I am trying to automate as maximum as possible the addition of authorized
keys to my new remote servers by doing the below playbook, but I am getting
the following error:
===
fatal:
Hi Ben,
Not sure if you ended up fixing it however I had the same issue.
It was because of the password that I had set.
Regards,
Tim
On Friday, 23 December 2016 04:26:25 UTC+11, Ben .T.George wrote:
>
> HI
>
> i am very new to ansible and i want to setup a POC env for my company.
>
> i was
group/host vars directories need to be adjacent to play or inventory,
they are not supported inside roles.
--
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
Hi, Marko --
How about having three files in vars directory (eg. pvs_vars.yml,
> stage_vars.yml, prod_vars.yml) with the same variable in it (ldapserver)
> and using include_vars module this way:
> - include_vars: "{{ env }}_vars.yml"
>
That sounds like a considerably easier and more sane
Hello,
I would like to copy some files specified by a group_var. But while running
my playbook I got the fatal error that the variable given is undefined. But
first things first. My directory structure looks like:
roles/mgmt/
|-- files
| |-- foo
| `-- bar
|-- group_vars
| `-- mgmt
|--
ignore error will not avoid connection errors, only task errors, so
'UNREACHABLE' will not be captured by it.
On Sun, Feb 19, 2017 at 2:30 AM, Pshem Kowalczyk wrote:
> Hi,
>
> Perhaps not directly answering your question - but a workaround I used in a
> number of playbooks
Before you had sent the message back I think we got started along the right
path there. I'm sure there are some things we aren't doing correctly, but
would appreciate your input to help with this. I think we might have a
working prototype soon, and once we get it going, then I think it could
hello,
I tried to execute a bash script ( the script is inside the remote windows
server)
the bash script was executed but the win_shell task hangs.
win_shell: chdir="C:\\someApp\\bin" ./start.bat
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
22 matches
Mail list logo