Hello, the problem was that i had different Versions of ansible installed on the system. One with python pip and one with apt. I removed all ansible packages and did a fresh install. Then everything was ok. Thank you, Uwe
Am Dienstag, 26. Januar 2016 15:35:13 UTC+1 schrieb Uwe Kruse: > > Hello, i try to run an ansible playbook every day and i use cron. > i get the following error: > > + sshpass -p xxxxxxxxx ansible-playbook -i all_actual_sp3_hosts.txt > uk_key.yml --ask-pass -c paramiko > Traceback (most recent call last): > File "/usr/bin/ansible-playbook", line 323, in <module> > sys.exit(main(sys.argv[1:])) > File "/usr/bin/ansible-playbook", line 112, in main > utils.check_mutually_exclusive_privilege(options, parser) > AttributeError: 'module' object has no attribute > 'check_mutually_exclusive_privilege' > + ansible-playbook -i all_actual_sp3_hosts.txt paketliste.yml > Traceback (most recent call last): > File "/usr/bin/ansible-playbook", line 323, in <module> > sys.exit(main(sys.argv[1:])) > File "/usr/bin/ansible-playbook", line 112, in main > utils.check_mutually_exclusive_privilege(options, parser) > AttributeError: 'module' object has no attribute > 'check_mutually_exclusive_privilege' > + ansible alle -i all_actual_sp3_hosts.txt -m setup --tree > /home/kruseu/setup > Traceback (most recent call last): > File "/usr/bin/ansible", line 195, in <module> > (options, args) = cli.parse() > File "/usr/bin/ansible", line 86, in parse > utils.check_mutually_exclusive_privilege(options, parser) > AttributeError: 'module' object has no attribute > 'check_mutually_exclusive_privilege' > ? > > When i run it in a ssh-session everything works fine. > > What can i do to run the playbook inside a cron job? > > Ansible runs in a Ubuntu 14.04 system. The ansible version is 1.9.0.1-1. > > Greetings Uwe Kruse > > > > -- 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/2c608155-a3ae-470e-b7c2-880ad629999b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
