[ansible-project] Re: Help - transform .keys() output with regex_replace

2016-07-10 Thread 'Nico' via Ansible Project
Just realized my mistake...
This is a list so a simple |join(' ') did the trick...

{{ item.keys()|join(' ') }}


-Nico

On Sunday, July 10, 2016 at 12:02:00 PM UTC-7, Nico wrote:
>
> Hello
>
> I'am using the .keys function to get the key name out of a dict.
> {{ item.keys() }}
> which output: 
> ["MyKeysName"]
>
>
> Now, I'am trying to remove the *["* and *"]* so that only *MyKeysName *is 
> left.
> I have been looking at the regex_replace filter but not being an expert at 
> regex I'am having trouble getting it to work.
> Is regex_replace filter the best option here or is there another 
> recommended way?
> Any tips on what the regex should look like?
>
> [a-zA-Z]+ should allow me to extract only the characters leaving the [] 
> and " out correct?
>
> {{ item.keys()|regex_replace('^[a-zA-Z]+$','\\1') }}
>
>
> Running Ansible 2.2.0
> Any help or guidance is appreciated.
>
> Thanks
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/34029504-8fa6-451c-8ad9-05e102f2af4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: ansible installation fails with LOCALE error

2016-07-10 Thread 'Nico' via Ansible Project
Issue is not with Ansible but with your system. 
Seems you may have to regenerate some of your locale settings.
Try the solution mentioned 
here: http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue

-Nico

On Sunday, July 10, 2016 at 12:02:02 PM UTC-7, Oleg Belousov wrote:
>
> Error:
>
> msg: 'apt-get install 'runit' ' failed: perl: warning: Setting locale 
> failed.
> perl: warning: Please check that your locale settings:
>  LANGUAGE = (unset),
>  LC_ALL = (unset),
>  LC_TIME = "de_DE.UTF-8",
>  LC_MONETARY = "de_DE.UTF-8",
>  LC_ADDRESS = "de_DE.UTF-8",
>  LC_TELEPHONE = "de_DE.UTF-8",
>  LC_NAME = "de_DE.UTF-8",
>  LC_MEASUREMENT = "de_DE.UTF-8",
>  LC_IDENTIFICATION = "de_DE.UTF-8",
>  LC_NUMERIC = "de_DE.UTF-8",
>  LC_PAPER = "de_DE.UTF-8",
>  LANG = "C"
> are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> locale: Cannot set LC_ALL to default locale: No such file or directory
> grep: /etc/inittab: No such file or directory
> grep: /etc/inittab: No such file or directory
> cp: cannot stat '/etc/inittab': No such file or directory
> dpkg: error processing package runit (--configure):
>  subprocess installed post-installation script returned error exit status 
> 1
> Errors were encountered while processing:
>  runit
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
>
> This is an open source ansimble config from here:
> https://github.com/txbits/TxBitsDeployer
>
>
> Let it be noted that I am using Ubuntu 14.04 instead of Debian 8 as noted 
> in the docs.
> Could that be the problem?
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d6ec2e4a-8194-4d16-8f9c-7be0ca94696a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: How to check if any package is installed on remote system ?

2016-07-10 Thread 'Nico' via Ansible Project
Hi,

It depend on what you want to achieve, the yum module can check if a 
package is installed or not then install or remove using the state 
parameter.
However if you just want to check if a package is installed or not then 
something like this post:
http://stackoverflow.com/questions/21892603/how-to-make-ansible-execute-a-shell-script-if-a-package-is-not-installed

but for yum the command would probably be: yum list installed 

-Nico

On Sunday, July 10, 2016 at 12:02:02 PM UTC-7, Pratik Bandarkar wrote:
>
> Hi,
>
> I am looking for some option in yum module to check if any specific 
> package is installed or not ? Can anyone help me on the same.
>
> Regards,
> Pratik.
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8a03ab1a-9d9f-41f1-809f-a79e649ea85d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Server date in Ansible/J2?

2016-07-10 Thread Kai Stian Olstad

On 09. juli 2016 04:03, j...@jpsdomain.org wrote:

I have what seems to be a simple question that I can't find on the web.  How do I get the 
current date from the Ansible server into a J2 variable?  I know how to do it with {{ 
ansible_date_time.date }} but that's from the remote node at the time Ansible collected 
facts (which could be cached), NOT "now" on the server I'm running on...right?


Check out lookups
https://docs.ansible.com/ansible/playbooks_lookups.html

{{ lookup('pipe','date') }}

--
Kai Stian Olstad

--
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5782A4DC.4060407%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Server date in Ansible/J2?

2016-07-10 Thread jp


I have what seems to be a simple question that I can't find on the web.  How do 
I get the current date from the Ansible server into a J2 variable?  I know how 
to do it with {{ ansible_date_time.date }} but that's from the remote node at 
the time Ansible collected facts (which could be cached), NOT "now" on the 
server I'm running on...right?

Use case (this works, but it's remote node "setup" (get facts) time, not local 
server "now" time):
 - name: Update image_release file
   lineinfile:
 dest=/image_release
 state=present
 insertbefore=BOF
 line='{{ ansible_date_time.date }} {{ image_release }}'
How do I get "now" on the server I'm running on?

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/73b10bf5-a9f9-4525-9f75-8dd37bb7a04e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Login Credentials were rejected for Computers Attached to Active Directory

2016-07-10 Thread Rajagopal Subramanian


I have three 3 Windows computers. One is Windows server 2012, Other two are 
Windows 7 Desktop. Through Ansible I can individually manage all 3 windows 
machine through their local login account. Ansible Work Perfectly.


Now I configure AD in windows server 2012 and I joined two desktop computer 
to AD. Through Active Directory's Administrator Account I can login through 
all 3 Windows Machines.


To Manage AD Account in ansible I installed keberos as mentioned in this 
documentaion. 



My Configurations are as follow:


*/etc/krb5.conf*


[libdefaults]

default_realm = NAANAL.IN

[realms]

NAANAL.IN = {
kdc = WIN2012.naanal.in
default_domain = naanal.in
}

[domain_realm]

.naanal.in = NAANAL.IN

[login]

krb4_convert = true
krb4_get_tickets = false


*Connection and Ticket Details:*


kinit administra...@naanal.in
Password for administra...@naanal.in:



klist
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: administra...@naanal.in

Valid starting   Expires  Service principal
2016-07-10T20:41:25  2016-07-11T06:41:25  krbtgt/naanal...@naanal.in
renew until 2016-07-11T20:40:33


Now I just try to ping my all windows machines through the account 
administra...@naanal.in


Here is my Configuration and output :


*hosts*


[windows]
192.168.1.13  -> Windows 7 Desktop Attached to AD
192.168.1.23  -> Windows 7 Desktop Attached to AD
172.30.64.77  -> Windows 2012 with AD


*group_vars/windows.yaml*


ansible_user: administra...@naanal.in
ansible_password: p@ssw0rd1
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore


While I run ansible windows -i hosts -m win_ping


192.168.1.13 | UNREACHABLE! => {
"changed": false,
"msg": "ssl: the specified credentials were rejected by the server",
"unreachable": true
}
192.168.1.23 | UNREACHABLE! => {
"changed": false,
"msg": "ssl: the specified credentials were rejected by the server",
"unreachable": true
}
172.30.64.77 | SUCCESS => {
"changed": false,
"ping": "pong"
}


i.e In Ansible, I can't login into computers attached to AD through AD user 
account. Where I miss things ?


Note: I enabled Remote Connections in Desktops. Also tried with firewall 
disabled.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0118152e-0673-4ee4-ac83-4531d6704723%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] ansible installation fails with LOCALE error

2016-07-10 Thread Oleg Belousov
Error:

msg: 'apt-get install 'runit' ' failed: perl: warning: Setting locale failed
.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LC_TIME = "de_DE.UTF-8",
 LC_MONETARY = "de_DE.UTF-8",
 LC_ADDRESS = "de_DE.UTF-8",
 LC_TELEPHONE = "de_DE.UTF-8",
 LC_NAME = "de_DE.UTF-8",
 LC_MEASUREMENT = "de_DE.UTF-8",
 LC_IDENTIFICATION = "de_DE.UTF-8",
 LC_NUMERIC = "de_DE.UTF-8",
 LC_PAPER = "de_DE.UTF-8",
 LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
cp: cannot stat '/etc/inittab': No such file or directory
dpkg: error processing package runit (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 runit
E: Sub-process /usr/bin/dpkg returned an error code (1)



This is an open source ansimble config from here:
https://github.com/txbits/TxBitsDeployer


Let it be noted that I am using Ubuntu 14.04 instead of Debian 8 as noted 
in the docs.
Could that be the problem?

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f8fb57d-ec59-43fa-9d32-87fd7f8bf829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Mark playbook execution as complete when certain file is present in remote system

2016-07-10 Thread Zeal Vora
Hi

We are planning to run our infrastructure on Ansible Pull Mode so all the 
host machines will keep on polling every few minutes.

In a single outside.yml file, we will have around 8 playbooks.

I want to mark a specific whole playbook as completed if there is certain 
file present in a remote system. 

What is the most ideal way to achieve this ? 

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1618decd-4692-4e2e-a5f4-1c79c4999478%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Error while deploying open source bitcoin exchange platform that uses ansimble

2016-07-10 Thread Oleg Belousov
This is the line with the error:
https://github.com/txbits/TxBitsDeployer/blob/master/playbook/group_vars/staging_testnet#L5

This is how the error looks like in the console:

fatal: [longcat.staging-testnet-txbits.com] => Syntax Error while loading 
YAML script, 
/home/user/dev/TxBitsDeployer/playbook/group_vars/staging_testnet
Note: The error may actually appear before this position: line 5, column 29

# for webservers
frontend_fqdn: {{root_domain}}
^
This one looks easy to fix.  YAML thought it was looking for the start of a 
hash/dictionary and was confused to see a second "{".  Most likely this was
meant to be an ansible template evaluation instead, so we have to give the 
parser a small hint that we wanted a string instead. The solution here is 
to 
just quote the entire value.

For instance, if the original line was:

app_path: {{ base_path }}/foo

It should be written as:

app_path: "{{ base_path }}/foo"

We could be wrong, but this one looks like it might be an issue with
missing quotes.  Always quote template expression brackets when they 
start a value. For instance:

with_items:
  - {{ foo }}

Should be written as:

with_items:
  - "{{ foo }}"  




What I was trying to do is 
./initial_deploy.sh staging_testnet

In order to test the pipeline.

Thanks in advance.
O.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c1cf33ad-a5b8-4aa0-95b9-16e8d69088fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] subsequent jobs

2016-07-10 Thread Ryan R.
Hello! I like how SCM update can be run just before a job, by selecting 
"Update on launch".

I would like for a job to run the same way, just before a job.

Is it possible that Job-Two can be set to automatically run when Job-One 
finishes?

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/07b09d42-26ad-4a5d-b365-8c5ad01eb9cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] How to check if any package is installed on remote system ?

2016-07-10 Thread Pratik Bandarkar
Hi,

I am looking for some option in yum module to check if any specific package 
is installed or not ? Can anyone help me on the same.

Regards,
Pratik.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3ebb2e3a-0fb9-4d95-bbf9-6dc213081120%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] handler invoked from role is not called

2016-07-10 Thread Szabolcs Szallár
hi, 

If I use the handler incorrectly, please let me know.

I'm using Ansible a quiet while and recently migrated from 1.9 to 2.1.0.0.
My target host is CentOS 6.5
I try to follow the documentation, but can't make the handlers work.

The playbook structure is generated by ansible-galaxy init projectname,
and I use the following logic:
site.yml has lines something like:

  - name: single node setup of projectname
vars_files:
  - vars/main.yml
hosts: node01
become: true
roles:
 - base

Logical structure:

site.yml
└── roles
  └── base
  └── tasks
 └── main.yml

Example line in main.yml:

 - name: configure iptables rules
   template: src=iptables_config.j2 dest=/etc/sysconfig/iptables owner=root 
group=root mode=0600
   notify: 
- iptables restart

In roles directory I have a task with main.yml, and from that main.yml I 
add package configuration with template.
When the template is updated, I have a handler called, but for some reason 
it's not executed.

Handlers are in same level as site.yml:

└── handlers
└── main.yml

Example line in handlers/main.yml:

- name: iptables restart
  service: name=iptables state=restarted

I expect the handler take action when the template updates the iptables 
configuration file, but it's never called.
This issue is not specific to the above example.


Regards,
Szabolcs

 






-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6059227c-bc95-441a-9aef-c93550ba136e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Help - transform .keys() output with regex_replace

2016-07-10 Thread 'Nico' via Ansible Project
Hello

I'am using the .keys function to get the key name out of a dict.
{{ item.keys() }}
which output: 
["MyKeysName"]


Now, I'am trying to remove the *["* and *"]* so that only *MyKeysName *is 
left.
I have been looking at the regex_replace filter but not being an expert at 
regex I'am having trouble getting it to work.
Is regex_replace filter the best option here or is there another 
recommended way?
Any tips on what the regex should look like?

[a-zA-Z]+ should allow me to extract only the characters leaving the [] and 
" out correct?

{{ item.keys()|regex_replace('^[a-zA-Z]+$','\\1') }}


Running Ansible 2.2.0
Any help or guidance is appreciated.

Thanks

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/67c641b9-ef83-4580-ba04-179d7d6a9eec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [ansible-project] Ansible-play reference a local hosts file

2016-07-10 Thread Eric Marquez
Great thanks.  I like that better than using the inventory argument. 

-Original Message-
From: ansible-project@googlegroups.com 
[mailto:ansible-project@googlegroups.com] On Behalf Of Kai Stian Olstad
Sent: Sunday, July 10, 2016 11:36 AM
To: ansible-project@googlegroups.com
Subject: Re: [ansible-project] Ansible-play reference a local hosts file

On 10. juli 2016 20:22, Eric Marquez wrote:
> How do I get Ansible-play to reference a local hosts files?  I created a 
> hosts file in the same directly with my site.yaml file but it doesn't seem to 
> reference it.  Is there a way to get it to use a local vs the 
> /etc/Ansible/hosts?
> I would like to have a local version and not need to update the master with a 
> priv account.

In the same directory as your site.yaml and host file, create a ansible.cfg 
file with the following content:

[defaults]
hostfile  = 


--
Kai Stian Olstad

--
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgroups.google.com%2fd%2fmsgid%2fansible-project%2f57829590.1040506%2540olstad.com=01%7c01%7cebm%40bing.com%7cc5972a7a82c740997dc008d3a8f10f1b%7c72f988bf86f141af91ab2d7cd011db47%7c1=UVnceyeNWd5Xs3mN12o89PZRSrL%2fkKtdkGEztVTiSUA%3d.
For more options, visit 
https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgroups.google.com%2fd%2foptout=01%7c01%7cebm%40bing.com%7cc5972a7a82c740997dc008d3a8f10f1b%7c72f988bf86f141af91ab2d7cd011db47%7c1=j%2b7xXnL2zn%2bZJiG7j%2fQISAT77ViCxJ%2fzcOhIrIVjw7A%3d.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CY1PR0301MB12606AB72F694EE5742CCD2ADD3E0%40CY1PR0301MB1260.namprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible-play reference a local hosts file

2016-07-10 Thread Kai Stian Olstad

On 10. juli 2016 20:22, Eric Marquez wrote:

How do I get Ansible-play to reference a local hosts files?  I created a hosts 
file in the same directly with my site.yaml file but it doesn't seem to 
reference it.  Is there a way to get it to use a local vs the 
/etc/Ansible/hosts?
I would like to have a local version and not need to update the master with a 
priv account.


In the same directory as your site.yaml and host file, create a 
ansible.cfg file with the following content:


[defaults]
hostfile  = 


--
Kai Stian Olstad

--
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/57829590.1040506%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible-play reference a local hosts file

2016-07-10 Thread Eric Marquez
How do I get Ansible-play to reference a local hosts files?  I created a hosts 
file in the same directly with my site.yaml file but it doesn't seem to 
reference it.  Is there a way to get it to use a local vs the 
/etc/Ansible/hosts?
I would like to have a local version and not need to update the master with a 
priv account.

Thanks in advance.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CY1PR0301MB1260705101B9DAE965916B45DD3E0%40CY1PR0301MB1260.namprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Run local dynamic inventory script against remote Fuel server

2016-07-10 Thread Kai Stian Olstad

On 10. juli 2016 11:08, Rod Oliver wrote:

I have found a dynamic inventory script
(https://github.com/martineg/ansible-fuel-inventory) for Mirantis Fuel that
runs just fine on the Fuel host itself. In my case I can't install Ansible
on the Fuel server so need to to run the dynamic inventory script remotely.
I guess there ought to be a way to do this via SSH. Can anyone suggest how
to do this simply and preferably without modifying the dynamic inventory
script itself?


I guess this should work, but you'll need to set up ssh keys between 
Ansible control machine and the fuel server.
Make a script(here called my_script.sh) on Ansible control machine and 
make it executable.


#!/bin/bash
ssh user@fuel-server /path/to/fuel.py

Then you can run ansible/ansible-playbook with
-i my_script.sh
or change ansible.cfg accordingly.

--
Kai Stian Olstad

--
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/57826A5D.8020702%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Useful Ansible snippets for Sublime and filter plugins

2016-07-10 Thread Alexander Jäger
Hi there,

i wanted to shared some work i did:

1. I wrote a shell script which writes auto completion snippets for Sublime 
text: https://github.com/lxhunter/ansible-sublime-text-snippets
2. I wrote and documented filter plugins for ansible, I borrowed the 
functions from 
underscore.string: https://github.com/lxhunter/ansible-filter-plugins

If you find them useful, give me a star and fork if you like to advance 
them ;)

Have a nice Sunday!
Alex

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/71f35fe4-2128-4af3-9592-a65871687f86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Run local dynamic inventory script against remote Fuel server

2016-07-10 Thread Rod Oliver
I have found a dynamic inventory script 
(https://github.com/martineg/ansible-fuel-inventory) for Mirantis Fuel that 
runs just fine on the Fuel host itself. In my case I can't install Ansible 
on the Fuel server so need to to run the dynamic inventory script remotely. 
I guess there ought to be a way to do this via SSH. Can anyone suggest how 
to do this simply and preferably without modifying the dynamic inventory 
script itself?

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2f1faee2-95ea-4d12-bfbf-8c976e6c5c88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.