not able to run playbook in ansible 2.9.2

287 views
Skip to first unread message

Eric Chang

unread,
Feb 18, 2020, 10:44:19 PM2/18/20
to Ansible Project
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

this problem should been already  fixed couple years ago ?

is there any suggestions to fix that issue ?

Dick Visser

unread,
Feb 19, 2020, 3:02:02 AM2/19/20
to ansible...@googlegroups.com
Hi

Did you actually read the 2.8 output?
To help you locate things, see below the pinpointed paragraph
Reply all
Reply to author
Forward
0 new messages