[ansible-devel] A Question Regarding Community Module Pull Request Process

2018-03-18 Thread John Roach
Hi!

I created a pull request for a community 
module https://github.com/ansible/ansible/pull/37445

Per the ISSUE_HELP documentation 
(https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md#for-pull-request-submitters)
 
a module maintainer would need to ship it.

I was wondering if there was an active module maintainer for the VMWare 
Inventory integration.

Have a great day!

-- 
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] openstack os_server_facts: some of openstack_servers entries partially replaced by asterisks

2018-03-18 Thread 'Felix Fontein' via Ansible Development
Hi,

> I just wrote a trivial snippet which uses 'os_server_facts' module to 
> collect VM info.
> Snippet itself works fine but output a bit confusing me.
> It looks like this:
> "openstack_servers": [
> {
> "HUMAN_ID": true,
> "NAME_ATTR": "name",
> "OS-DCF:diskConfig": "MANUAL",
> "OS-EXT-AZ:availability_zone": "nova",
> "OS-EXT-SRV-ATTR:host": "node58.ostack.",
> "OS-EXT-SRV-ATTR:hypervisor_hostname":
> "node58.ostack.", .
>  "human_id": "test-instance-for-",
> .
>  "name": "test-instance-for-",
> 
> Real hypervisor's name is node58.ostack.mydomain and vm 
> test-instance-for-USER.
> And openstack authentication parameters looks like:
> 
> domain: mydomain
> user: USER
> 
> I mean every parts of openstack_servers dict which corresponding to 
> openstack auth->user_domain_name and/or project_domain_name and
> auth->username replaced by asterisks. As far as I can see data which 
> os_server_facts module returns looks perfectly well so 
> replacements come from ansible core.
> All this looks intentional, security related and idiotic at the same
> time. Is this a bug or I missing something in documentation? Could
> anyone give a hint where to dig further?

the data censored out is probably contained in one of the options
marked with no_log=True. If one of them is a dict, ansible will censor
everything in the output which appears as a value somewhere in that
dict. For the openstack modules, that's everything in the auth and key
options (see openstack_full_argument_spec in module_utils/openstack.py).

Cheers,
Felix

-- 
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] openstack os_server_facts: some of openstack_servers entries partially replaced by asterisks

2018-03-18 Thread git.user
Hello.

I just wrote a trivial snippet which uses 'os_server_facts' module to 
collect VM info.
Snippet itself works fine but output a bit confusing me.
It looks like this:
"openstack_servers": [
{
"HUMAN_ID": true,
"NAME_ATTR": "name",
"OS-DCF:diskConfig": "MANUAL",
"OS-EXT-AZ:availability_zone": "nova",
"OS-EXT-SRV-ATTR:host": "node58.ostack.",
"OS-EXT-SRV-ATTR:hypervisor_hostname": "node58.ostack.",
.
 "human_id": "test-instance-for-",
.
 "name": "test-instance-for-",

Real hypervisor's name is node58.ostack.mydomain and vm 
test-instance-for-USER.
And openstack authentication parameters looks like:

domain: mydomain
user: USER

I mean every parts of openstack_servers dict which corresponding to 
openstack auth->user_domain_name and/or project_domain_name and
auth->username replaced by asterisks. As far as I can see data which 
os_server_facts module returns looks perfectly well so 
replacements come from ansible core.
All this looks intentional, security related and idiotic at the same time.
Is this a bug or I missing something in documentation? Could anyone give a 
hint where to dig further?

-- 
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] Re: Repeat a task based on a csv string from extra_var

2018-03-18 Thread GoFigure
Or should this sort of thing be done via a module?

Thanks

On Wednesday, March 14, 2018 at 2:30:07 PM UTC+11, GoFigure wrote:
>
>
> Hello All,
>
> I am a complete newbie and have only spent hours reading about ansible and 
> topics this forum. I have been (un;)fortunate to work with ansible devs, so 
> haven't had to get my hands dirty. Anyway here I am and ready to get my 
> hands dirty. There is a specific nut I am trying to crack in ansible. We 
> want to dev a job template that add disks to and server instance. The size 
> and number of disk will be provided as an extra_var csv string, eg. 
> 10,100,25,200 would add 4 disks of sizes 10GB, 100GB, 25GB & 200GB. We have 
> the task ready and it works, so adding one disk is not a problem, but how 
> do we then repeat that task for the next disk? Its not a question of nuts 
> and bolts of adding disks, its a question how do we take the csv string 
> (not file) and then loop the task.
>
> Looks like this is possible in Ansible, as per the below articles.
> http://docs.ansible.com/ansible/latest/playbooks_loops.html
>
> https://groups.google.com/forum/#!searchin/ansible-project/.split$20with_items$20comma|sort:date/ansible-project/jpqKAXezl40/TItF3W48AAAJ
>
> https://groups.google.com/forum/#!searchin/ansible-project/.split|sort:date/ansible-project/QmvdMpaLxwY/Czv0irDoCgAJ
>
> https://groups.google.com/forum/#!searchin/ansible-project/.split|sort:date/ansible-project/x2MCN2Qc4GU/fQSvxJEiAQAJ
>
> Thanks
>

-- 
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] [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
Hi All,

   Request you help, after upgrade ansible to 2.6 -devel the password vault 
is not working as expected, and getting the below error, before the upgrade 
it was working fine without any issues.

*ansible-playbook /home/ansible/playbooks/oscheck.yml --syntax-check*

 [WARNING]: Error in vault password file loading (default): A vault 
password must be specified to decrypt data

ERROR! A vault password must be specified to decrypt data

*ansible --version*
ansible 2.6.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = 
[u'/home/ansible/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.13 (default, Jan 11 2017, 10:56:06) [GCC]

*oscheck.ym*l
---
- hosts: target
  become: true
  become_method: sudo
  gather_facts: no
  vars_files:
  - "/home/ansible/playbooks/target.yml"

*/etc/ansible/ansible.cfg*
# If set, configures the path to the Vault password file as an alternative 
to
# specifying --vault-password-file on the command line.
vault_password_file = /home/ansible/playbooks/target.pass

*Procedure to re-produce the issue*
vi target.yml
ansible_user: ansible
ansible_ssh_pass: 
ansible_become_pass: 
touch target.pass
ansible-vault encrypt target.pass
Enter the Vault password : 
Confirm New Vault password : 
ansible-vault encrypt target.yml --vault-password-file=target.pass

At this point : Error : 
 [WARNING]: Error in vault password file loading (default): A vault 
password must be specified to decrypt data

ERROR! A vault password must be specified to decrypt data

Even tried the below command, but still no luck.

ansible-vault encrypt /home/ansible/playbooks/target.yml 
--vault-password-file=/home/ansible/playbooks/target.pass

From,
Vino.B

-- 
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.