[ansible-devel] Ansible 2.5.0 Release Candidate 2 is available

2018-03-08 Thread mattdavi
Hi all- we're happy to announce that Release Candidate 2 of Ansible 2.5.0 
is now available! 


How do you get it?
--

All Ansible pre-releases in the 2.5 series will be published to PyPI. This 
is probably the easiest way for most users to install:

$ pip install ansible==2.5.0rc2 --user


The tar.gz of the release can be found here:

http://releases.ansible.com/ansible/ansible-2.5.0rc2.tar.gz
SHA256: 609066a807778228b4c3cb1b5f121c7d29d3abbf060079de65e434a9896f3efd

You can also test against the git repository as follows:

$ git clone https://github.com/ansible/ansible.git
$ cd ansible
$ git checkout v2.5.0rc2


You can then source our testing script:

$ . hacking/env-setup

or you can build your own .tar.gz (output will be 
dist/ansible-2.5.0rc2.tar.gz):

$ make sdist


Weekly pre-release builds are planned through release; all will be 
available via PyPI, releases.ansible.com, and GitHub.


Planned Release Schedule
--
Release Candidate 3 (if necessary): March 15, 2018
(further release candidates as necessary)
Final Release: mid-March, 2018 (target March 15, 2018, assuming no RC3)


Finally, we've published a draft porting guide at 
https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.5.html 
to help migrate your content to 2.5. If you discover any errors, or if you 
see any regressions from playbooks which work on 2.4.x and prior, please 
open a Github issue, and be sure to mention you're testing against 2.5.0rc2.


Thanks!

Matt Davis (@nitzmahone)
Ansible Core Engineering / 2.5 release manager

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-devel] Content from multiple hosts to one file

2018-03-08 Thread Ed C
I think what you're after is the "magic" groups and hostvars variables:
http://docs.ansible.com/ansible/latest/playbooks_variables.html#magic-variables-and-how-to-access-information-about-other-hosts

These let you access the information about what hosts are in a group and
the facts about those hosts. Combining these with a loop using the template
module should give you what you want.

For example, lets assume you wanted to produce a list of the webservers in
your loadbalancer configuration. You could do something like


- hosts: loadbalancer
tasks:
- template:
src: mytemplate.j2
dest: list-of-hosts

Then the template file would look something like:

{% for host in groups['webservers'] %}
{{ hostvars[host]['ansible_hostname'] }}
{% endfor %}


What this is doing is looping over all the hosts in the webservers group,
then pulling out the ansible_hostname fact for each host. You can pull out
whatever fact it is you want from the other hosts.

Hope that helps
Ed
On Thu, 8 Mar 2018 at 3:39 AM, belajzus  wrote:

> Hi to all,
>
> I need to generate some file, and inside that file is some content from
> multiple hosts.
> I've done that using template module, so I generate one file on every
> host, delegate that to localhost, and with assemble module all that files I
> merge to one single file.
> Is that OK, or is it the better way to do the same.
> I try with blockinfile module, but it always override current content of
> some file, and I'm not sure is it possible to generate new file with
> blockinfile module.
> I would like to run playbook on the group, collect some data with custom
> facts, and those custom facts from all hosts use to populate one single
> file on control machine for example.
>
> Tnx for any help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-devel] [Urgent help] Ansible for fetching and comparing windows OS configuration, performance stats

2018-03-08 Thread Akash Agarwal
Hi All,

Is there a way to use Ansible to fetch Windows OS specific configuration 
using Ansible on demand ?
Is there a way to fetch OS updates, Open Ports, Windows Running Services 
list?
Is there a way to monitor Windows Performance Counters for a duration of 
time ?

Thanks,
Akash

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-devel] new developer: make deb

2018-03-08 Thread Kai Stian Olstad
On Thursday, 8 March 2018 16.14.18 CET Keltik85 wrote:
> first thanks for your answer and sorry again for the next stupid question.
> 
> Ok I installed this stuff here:
> 
> *sudo apt-get install -y asciidoc libxslt1-dev docbook-xsl xsltproc 
> libxml2-utils devscripts*

You need to check the line Build-Depends: in file packaging/debian/control and 
install the requirement listed there.


-- 
Kai Stian Olstad

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-devel] new developer: make deb

2018-03-08 Thread Keltik85
first thanks for your answer and sorry again for the next stupid question.

Ok I installed this stuff here:

*sudo apt-get install -y asciidoc libxslt1-dev docbook-xsl xsltproc 
libxml2-utils devscripts*

Now *make deb* fails here:

ansible-2.6.0/docs/docsite/_static/basic.css
ansible-2.6.0/docs/docsite/_static/default.css
ansible-2.6.0/docs/docsite/_static/jquery.js
ansible-2.6.0/docs/docsite/_static/minus.png
ansible-2.6.0/docs/docsite/_static/bootstrap-scrollspy.js
ansible-2.6.0/README.md
ansible-2.6.0/setup.py
ansible-2.6.0/VERSION
debuild: unknown dpkg-buildpackage/debuild option: --source-option=-I
 dpkg-buildpackage -rfakeroot -d -us -uc --source-option=-I -S
dpkg-buildpackage: source package ansible
dpkg-buildpackage: source version 
2.6.0-100.git201802270732.60a24bb.devel~unstable
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Ansible, Inc. 
 dpkg-source -I --before-build ansible-2.6.0
 fakeroot debian/rules clean
debian/rules:6: /usr/share/cdbs/1/rules/debhelper.mk: No such file or 
directory
debian/rules:7: /usr/share/cdbs/1/class/python-distutils.mk: No such file 
or directory
make: *** No rule to make target 
'/usr/share/cdbs/1/class/python-distutils.mk'.  Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit 
status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -d -us -uc --source-option=-I -S failed
Makefile:317: recipe for target 'deb-src' failed
make: *** [deb-src] Error 29

I am on Linux Mint 18.1 Serena/ Ubuntu 5.4.0-6ubuntu1~16.04.9 .

Any help setting up the basic workflow is appreciated. And again sorry for 
stupid questions. Just kick me out of the mailinglist if you want.


Am Donnerstag, 8. März 2018 12:48:02 UTC+1 schrieb Serge van Ginderachter:
>
> The error seems quite clear here:
>
> *ERROR: AsciiDoc 'a2x' command is not installed but is required to build 
> ...*
>
>
> *Serge*
>
> On 8 March 2018 at 12:38, Keltik85  
> wrote:
>
>> Hi,
>>
>> I am new to the Ansible github project. Hope this is not a stupid 
>> question...
>>
>> I want to get accustomed to the basic development workflow on my local 
>> machine.
>>
>> I checked out the github repository and executed make deb: 
>>
>> *1. git clone https://github.com/ansible/ansible.git 
>> *
>>
>> *2. cd ansible/*
>>
>> I edited some portion of the code and now I want to use the new code base:
>>
>> *3. make deb*
>>
>> *The output of make is as follows:*
>>
>> *Cleaning up distutils stuff*
>> *rm -rf build*
>> *rm -rf dist*
>> *rm -rf lib/ansible.egg-info/*
>> *Cleaning up byte compiled python stuff*
>> *find . -type f -regex ".*\.py[co]$" -delete*
>> *find . -type d -name "__pycache__" -delete*
>> *Cleaning up editor backup files*
>> *find . -type f -not -path 
>> ./test/units/inventory_test_data/group_vars/noparse/all.yml~ \( -name "*~" 
>> -or -name "#*" \) -delete*
>> *find . -type f \( -name "*.swp" \) -delete*
>> *Cleaning up manpage stuff*
>> *find ./docs/man -type f -name "*.xml" -delete*
>> *find ./docs/man -type f -name "*.asciidoc" -delete*
>> *find ./docs/man/man3 -type f -name "*.3" -delete*
>> *rm -f ./docs/man/man1/**
>> *Cleaning up output from test runs*
>> *rm -rf test/test_data*
>> *rm -rf shippable/*
>> *rm -rf logs/*
>> *rm -rf .cache/*
>> *rm -f test/units/.coverage**
>> *rm -rf test/results/*/**
>> *find test/ -type f -name '*.retry' -delete*
>> *Cleaning up RPM building stuff*
>> *rm -rf MANIFEST rpm-build*
>> *Cleaning up Debian building stuff*
>> *rm -rf debian*
>> *rm -rf deb-build*
>> *rm -rf docs/json*
>> *rm -rf docs/js*
>> *Cleaning up authors file*
>> *rm -f AUTHORS.TXT*
>> *Cleaning up docsite*
>> *make -C docs/docsite clean*
>> *make[1]: Entering directory 
>> '/home/my-user/workspace_oxygen_python/ansible/docs/docsite'*
>> *rm -rf htmlout*
>> *rm -rf module_docs*
>> *rm -rf _build*
>> *rm -f .buildinfo*
>> *rm -f objects.inv*
>> *rm -rf *.doctrees*
>> *Cleaning up minified css files*
>> *find . -type f -name "*.min.css" -delete*
>> *Cleaning up byte compiled python stuff*
>> *find . -regex ".*\.py[co]$" -delete*
>> *Cleaning up editor backup files*
>> *find . -type f \( -name "*~" -or -name "#*" \) -delete*
>> *find . -type f \( -name "*.swp" \) -delete*
>> *Cleaning up generated rst*
>> *rm rst/cli/ansible-*.rst*
>> *rm: cannot remove 'rst/cli/ansible-*.rst': No such file or directory*
>> *Makefile:47: recipe for target 'clean' failed*
>> *make[1]: [clean] Error 1 (ignored)*
>> *rm rst/cli/ansible.rst*
>> *rm: cannot remove 'rst/cli/ansible.rst': No such file or directory*
>> *Makefile:47: recipe for target 'clean' failed*
>> *make[1]: [clean] Error 1 (ignored)*
>> *rm rst/modules/*_by_category.rst*
>> *rm: cannot remove 'rst/modules/*_by_category.rst': No such file or 
>> directory*
>> *Makefile:47: recipe for target 'clean' failed*
>> *make[1]: [clean] Error 1 (ignored)*
>> *rm rst/modules/list_of_*.rst*
>> *rm: cannot remove 

[ansible-devel] new developer: make deb

2018-03-08 Thread Keltik85
Hi,

I am new to the Ansible github project. Hope this is not a stupid 
question...

I want to get accustomed to the basic development workflow on my local 
machine.

I checked out the github repository and executed make deb: 

*1. git clone https://github.com/ansible/ansible.git*

*2. cd ansible/*

I edited some portion of the code and now I want to use the new code base:

*3. make deb*

*The output of make is as follows:*

*Cleaning up distutils stuff*
*rm -rf build*
*rm -rf dist*
*rm -rf lib/ansible.egg-info/*
*Cleaning up byte compiled python stuff*
*find . -type f -regex ".*\.py[co]$" -delete*
*find . -type d -name "__pycache__" -delete*
*Cleaning up editor backup files*
*find . -type f -not -path 
./test/units/inventory_test_data/group_vars/noparse/all.yml~ \( -name "*~" 
-or -name "#*" \) -delete*
*find . -type f \( -name "*.swp" \) -delete*
*Cleaning up manpage stuff*
*find ./docs/man -type f -name "*.xml" -delete*
*find ./docs/man -type f -name "*.asciidoc" -delete*
*find ./docs/man/man3 -type f -name "*.3" -delete*
*rm -f ./docs/man/man1/**
*Cleaning up output from test runs*
*rm -rf test/test_data*
*rm -rf shippable/*
*rm -rf logs/*
*rm -rf .cache/*
*rm -f test/units/.coverage**
*rm -rf test/results/*/**
*find test/ -type f -name '*.retry' -delete*
*Cleaning up RPM building stuff*
*rm -rf MANIFEST rpm-build*
*Cleaning up Debian building stuff*
*rm -rf debian*
*rm -rf deb-build*
*rm -rf docs/json*
*rm -rf docs/js*
*Cleaning up authors file*
*rm -f AUTHORS.TXT*
*Cleaning up docsite*
*make -C docs/docsite clean*
*make[1]: Entering directory 
'/home/my-user/workspace_oxygen_python/ansible/docs/docsite'*
*rm -rf htmlout*
*rm -rf module_docs*
*rm -rf _build*
*rm -f .buildinfo*
*rm -f objects.inv*
*rm -rf *.doctrees*
*Cleaning up minified css files*
*find . -type f -name "*.min.css" -delete*
*Cleaning up byte compiled python stuff*
*find . -regex ".*\.py[co]$" -delete*
*Cleaning up editor backup files*
*find . -type f \( -name "*~" -or -name "#*" \) -delete*
*find . -type f \( -name "*.swp" \) -delete*
*Cleaning up generated rst*
*rm rst/cli/ansible-*.rst*
*rm: cannot remove 'rst/cli/ansible-*.rst': No such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/cli/ansible.rst*
*rm: cannot remove 'rst/cli/ansible.rst': No such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/modules/*_by_category.rst*
*rm: cannot remove 'rst/modules/*_by_category.rst': No such file or 
directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/modules/list_of_*.rst*
*rm: cannot remove 'rst/modules/list_of_*.rst': No such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/modules/*_maintained.rst*
*rm: cannot remove 'rst/modules/*_maintained.rst': No such file or 
directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/modules/*_module.rst*
*rm: cannot remove 'rst/modules/*_module.rst': No such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/modules/*_plugin.rst*
*rm: cannot remove 'rst/modules/*_plugin.rst': No such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/playbooks_directives.rst*
*rm: cannot remove 'rst/playbooks_directives.rst': No such file or 
directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/plugins/*/*.rst*
*rm: cannot remove 'rst/plugins/*/*.rst': No such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/reference_appendices/config.rst*
*rm: cannot remove 'rst/reference_appendices/config.rst': No such file or 
directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*rm rst/reference_appendices/playbooks_keywords.rst*
*rm: cannot remove 'rst/reference_appendices/playbooks_keywords.rst': No 
such file or directory*
*Makefile:47: recipe for target 'clean' failed*
*make[1]: [clean] Error 1 (ignored)*
*make[1]: Leaving directory 
'/home/my-user/workspace_oxygen_python/ansible/docs/docsite'*
*make -C docs/api clean*
*make[1]: Entering directory 
'/home/my-user/workspace_oxygen_python/ansible/docs/api'*
*rm -rf _build/**
*rm -rf rst/*.rst*
*make[1]: Leaving directory 
'/home/my-user/workspace_oxygen_python/ansible/docs/api'*
*mkdir -p ./docs/man/man1/ ; \*
*PYTHONPATH=./lib docs/bin/generate_man.py 
--template-file=docs/templates/man.j2 --output-dir=docs/man/man1/ 
--output-format man lib/ansible/cli/*.py*
*Wrote doc to 
/home/my-user/workspace_oxygen_python/ansible/docs/man/man1/ansible-pull.1.asciidoc.in*
*Wrote doc to 
/home/my-user/workspace_oxygen_python/ansible/docs/man/man1/ansible-console.1.asciidoc.in*
*Wrote doc to