I wrote a simple plabook to test ansible_play_name  

---
> - hosts: localhost
>
>   tasks:
>     - name: ref playname
>       debug:
>         msg:  ansible_play_name
>


I can run the playbook in ansible 2.8 , but get an error in ansible 2.9.2

ansible 2.8.0

>
> (.28) 2020-02-19 11:40:35 [changch@hqdc034 abc_ansible]$ ansible --version
> ansible 2.8.0
>   config file = /home/changch/abc_ansible/ansible.cfg
>   configured module search path = ['/ansible_modules']
>   ansible python module location = 
> /home/changch/abc_ansible/.28/lib/python3.6/site-packages/ansible
>   executable location = /home/changch/abc_ansible/.28/bin/ansible
>   python version = 3.6.8 (default, Oct  7 2019, 12:59:55) [GCC 8.3.0]
> (.28) 2020-02-19 11:40:43 [changch@hqdc034 abc_ansible]$ ansible-playbook 
> playbook.play_name.yml 
>  [WARNING]: No inventory was parsed, only implicit localhost is available
>
>  [WARNING]: provided hosts list is empty, only localhost is available. 
> Note that the implicit localhost does not match 'all'
>
> [DEPRECATION WARNING]: profile_tasks callback, does not support setting 
> 'options', it will work for now,  but this will be 
> required in the future and should be updated,  see the 2.4 porting guide 
> for details.. This feature will be removed in version 
> 2.9. Deprecation warnings can be disabled by setting 
> deprecation_warnings=False in ansible.cfg.
>  [WARNING]: Skipping plugin 
> (/home/changch/abc_ansible/filter_plugins/password.py) as it seems to be 
> invalid: No module named
> 'passlib'
>
>
> PLAY [localhost] 
> *****************************************************************************************************************
>
> TASK [Gathering Facts] 
> ***********************************************************************************************************
> ok: [localhost]
>
> TASK [ref playname] 
> **************************************************************************************************************
> ok: [localhost] => {}
>
> MSG:
>
> ansible_play_name
>
>
> PLAY RECAP 
> ***********************************************************************************************************************
> localhost                  : ok=2    changed=0    unreachable=0    
> failed=0    skipped=0    rescued=0    ignored=0   
>
> TASK: Gathering Facts --------------------------------------------------- 
> 1.23s
> TASK: ref playname ------------------------------------------------------ 
> 0.01s
>
> Playbook finished: Wed Feb 19 11:40:51 2020, 2 total tasks.  0:00:01 
> elapsed.
>

ansible 2.9.2

(.ve) 2020-02-19 11:36:46 [changch@hqdc034 abc_ansible]$ ansible --version
> ansible 2.9.2
>   config file = /home/changch/abc_ansible/ansible.cfg
>   configured module search path = ['/ansible_modules']
>   ansible python module location = 
> /home/changch/abc_ansible/.ve/lib/python3.6/site-packages/ansible
>   executable location = /home/changch/abc_ansible/.ve/bin/ansible
>   python version = 3.6.8 (default, Oct  7 2019, 12:59:55) [GCC 8.3.0]
> (.ve) 2020-02-19 11:38:36 [changch@hqdc034 abc_ansible]$ 
>
> (.ve) 2020-02-19 11:30:54 [changch@hqdc034 abc_ansible]$ ansible-playbook 
> playbook.play_name.yml 
> [WARNING]: No inventory was parsed, only implicit localhost is available
>
> [WARNING]: provided hosts list is empty, only localhost is available. Note 
> that the implicit localhost does not match 'all'
>
> ERROR! Unexpected Exception, this is probably a bug: 'CallbackModule' 
> object has no attribute 'set_options'
> to see the full traceback, use -vvv
> (.ve) 2020-02-19 11:31:01 [changch@hqdc034 abc_ansible]$
>


according to this issue in github
https://github.com/RedHatSatellite/satellite-clone/issues/238

this problem should been already  fixed couple years ago ?

is there any suggestions to fix that issue ?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6b214f24-8603-4e83-81e6-5ca5a3d62f12%40googlegroups.com.

Reply via email to