module (redhat_subscription) is missing interpreter line

13 views
Skip to first unread message

stac...@gmail.com

unread,
Mar 2, 2017, 9:32:59 AM3/2/17
to Ansible Project
Imported ansible redhat_subscription module from the Git hub and created a play book using this module . While running that play book I'm getting error-
" fatal: [10.224.2.42]: FAILED! => {"failed": true, "msg": "module (redhat_subscription) is missing interpreter line " . Any idea about this error and as per the ansible syntax checker play book is good and there is no error at format perceptive.


[sysadm@pclprdftsnsoft1 ~]$ more rhn.yml
---
 - hosts: test
   become: yes
   become_user: sysadm
   become_method: sudo
   gather_facts: no
   tasks:
     - redhat_subscription:
         state: present
         activationkey: 1-vblock20170206
[sysadm@pclprdftsnsoft1 ~]$ tailf /var/log/ansible.log
         ^ here

2017-03-02 05:20:47,078 p=20805 u=sysadm |  PLAY [test] ********************************************************************
2017-03-02 05:20:47,133 p=20805 u=sysadm |  TASK [redhat_subscription] *****************************************************
2017-03-02 05:20:47,162 p=20805 u=sysadm |  fatal: [10.224.2.42]: FAILED! => {"failed": true, "msg": "module (redhat_subscription) is missing interpreter line"}
2017-03-02 05:20:47,167 p=20805 u=sysadm |  NO MORE HOSTS LEFT *************************************************************
2017-03-02 05:20:47,168 p=20805 u=sysadm |   [WARNING]: Could not create retry file 'rhn.retry'.         [Errno 2] No such file or directory: ''

2017-03-02 05:20:47,168 p=20805 u=sysadm |  PLAY RECAP *********************************************************************
2017-03-02 05:20:47,169 p=20805 u=sysadm |  10.224.2.42                : ok=0    changed=0    unreachable=0    failed=1

Reply all
Reply to author
Forward
0 new messages