Re: [ansible-project] Re: ansible stuck in celery

2016-12-15 Thread hzj...@foxmail.com
ur ansible.cfg if not specifed on the ansible-playbook command line? You might be asking a lot of your celery / ansible controller machine. Jon On Thursday, December 15, 2016 at 2:34:28 AM UTC, hzj...@foxmail.com wrote: hello,all i am using celery to run ansible-playbook , my env Python 2.7.5

[ansible-project] ansible stuck in celery

2016-12-14 Thread hzj...@foxmail.com
hello,all i am using celery to run ansible-playbook , my env Python 2.7.5 celery==4.0.1 ansible 2.2.0.0 redhat7.0 i use celery to run playbook to change passwd, the playbook task will stuck from time to time, when i kill the celery worker, then the task continues to run . i

[ansible-project] snmp_facts cannot find pysnmp

2016-10-16 Thread hzj...@foxmail.com
hello, i want to use snmp_facts module , and i installed the pysnmp, but everytime i execute the module, returns the error "msg": "Missing required pysnmp module (check docs)" i really can not figure it out, need some help; and i tried to import manully bye command line,

[ansible-project] how to get ESX/i facts

2016-10-04 Thread hzj...@foxmail.com
hello,all is there a way to get ESX/i host machine facts in vcenter ? not the virtual machine -- 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

Re: Re: [ansible-project] Re: Re: ansible user module change passwd

2016-10-02 Thread hzj...@foxmail.com
yes with_items: - "{{ usernames }}" register: user_info - name: ChangeUserPassord user: name="{{ item.item }}" password="{{ new_password }}" update_password=always when: item.rc == 0 with_items: "{{ user_info.results }}" hzj...

Re: Re: [ansible-project] Re: Re: ansible user module change passwd

2016-09-30 Thread hzj...@foxmail.com
em == 'AIX' and user_info_aix.stdout != "" hzj...@foxmail.com From: Kai Stian Olstad Date: 2016-09-30 19:53 To: ansible-project Subject: Re: [ansible-project] Re: Re: ansible user module change passwd On 30.09.2016 11:50, hzj...@foxmail.com wrote: > i tried, the playbook still cr

[ansible-project] Re: Re: ansible user module change passwd

2016-09-30 Thread hzj...@foxmail.com
i tried, the playbook still creates the user if user not exists on the remote hosts ; hzj...@foxmail.com From: JayB Date: 2016-09-30 17:18 To: Ansible Project CC: hzj.zh Subject: Re: ansible user module change passwd Please try the below. It works. --- - hosts: localhost remote_user

[ansible-project] ansible user module change passwd

2016-09-30 Thread hzj...@foxmail.com
hello,all i want to use ansible user module to change password on the remote hosts, but , if the user is not in the remote hosts, ansible will create the user, how can i change password only, if user is not exist, return error is ok; -- You received this message

[ansible-project] ansible pipelining config for aix

2016-09-29 Thread hzj...@foxmail.com
hello,all when i set pipelining = True in ansible.cfg, when i execute task for aix, adhoc returns MODULE FAILURE, playbook returns "module_stderr": "3004-501 Cannot su to \"root\" : Authentication is denied.\n" is there a way to solve this? -- You received this

[ansible-project] ansible fact for aix

2016-09-08 Thread hzj...@foxmail.com
hello,all the result from executing fact module on aix doesnot meet my need, I want to add some additional thing into the fact, like vg and pv info, how can i get it done? thank u -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] execute any module returns MODULE FAILURE except raw module

2016-08-25 Thread hzj...@foxmail.com
hello, if anyone came across this problem ? SUMMARY execute any module returns MODULE FAILURE except raw module ANSIBLE VERSION ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides CONFIGURATION remote_tmp = /tmp/${USER}/ansible

[ansible-project] ansible become time out issue

2016-08-24 Thread hzj...@foxmail.com
hello, come accross a problem, there is this special hosts, i just cannot use ansible to become root user; here is the ouput [root@localhost ~]# ansible host1 -m raw -a 'uname -a' -u admin4A -b --become-method=su -k -K SSH password: SU password[defaults to SSH password]: