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
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/dd247178-c356-47bb-a0df-325537c662d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.