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 cant find any error msg in celery log file;

the only thing i can find is that the problem relates to the number of hosts in 
inventory, 
50 hosts may be ok, 100 hosts definitely get this problem;

anyone happened to this?   the problem really frustrated me ;


this is my playbook
---
- name: '{{task_id}}:{{instance_type}}'
  hosts: '{{hosts}}'
  gather_facts: '{{gather_facts}}'
  vars:
   - usernames: "{{ user_name_lists}}"
  tasks:
   - name: GetUserInfo
     shell: egrep "^{{ item }}:" /etc/passwd
     ignore_errors: 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 }}"

-- 
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/2016121510370864796812%40foxmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to