NAMEWITHELD12
asked on
ansible error AttributeError: 'Task' object has no attribute 'async_val' WTF does this mean ??? I have not a clue as I am new to ansible
I am having an issue with my Ansilbe script running and have no idea what this error means , can some one send me in the right direction ?
task path: /home/ec2-user/Projects/oc p-automati on/RHEL-pr econfig-pl aybook.yml :43
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-p ackages/an sible/exec utor/task_ executor.p y", line 130, in run
res = self._execute()
File "/usr/lib/python2.7/site-p ackages/an sible/exec utor/task_ executor.p y", line 528, in _execute
result = self._handler.run(task_var s=variable s)
File "/usr/lib/python2.7/site-p ackages/an sible/plug ins/action /command.p y", line 23, in run
wrap_async = self._task.async_val and not self._connection.has_nativ e_async
AttributeError: 'Task' object has no attribute 'async_val'
fatal: [ec2-34-xxx-9-221.compute- 1.amazonaw s.com]: FAILED! => {}
task path: /home/ec2-user/Projects/oc
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-p
res = self._execute()
File "/usr/lib/python2.7/site-p
result = self._handler.run(task_var
File "/usr/lib/python2.7/site-p
wrap_async = self._task.async_val and not self._connection.has_nativ
AttributeError: 'Task' object has no attribute 'async_val'
fatal: [ec2-34-xxx-9-221.compute-
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I took the weekend off , we will be resuming this issue today and will have more info
thanks for the help , I think you are sending us in the right direction !
thanks for the help , I think you are sending us in the right direction !
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
not really , we have opened a ticket with red hat on it , I will update you soon !
thanks
thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yeah we had a hell of a time , had to open a ticket with red hat , I am not to clear on how we got it to work
ASKER
I will post what I know in a bit
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
are you doing this with an AWS AMI ?, some of the issue seemed to be from installing ansible and them creating and custom ami from it
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
- name: get repolist
shell: subscription-manager repos --list-enabled| awk '/^Repo ID:/{print $3}'
register: currentrepos
become: False
if I manually run "subscription-manager repos --list-enabled| awk '/^Repo ID:/{print $3}'" it will succeed and display what it is supposed to
I am not sure of the function of the "register: currentrepos"
the way I got the initial errors is by running the playbook with the -vvv option
is there a way to test this maybe with just running this with just a single host in the inventory file to prevent python from multi-threading some how ,
thanks again !