ansible --inventory /opt/wp/app/hegemon/ansible/hosts.prod --user mozart --private-key /root/.ssh/keys/prod p-backup01 -m s3
I get the error:
p-backup01 | FAILED >> {
"failed": true,
"msg": "Traceback (most recent call last):\n File \"<stdin>\", line 132, in <module>\nNameError: name 'module' is not defined\n",
"parsed": false
}
I've tested with other modules and it works just fine. I'm running Ansible 1.6.6.
Thanks.
--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d00dc785-c24e-4391-9df3-dcc77b56520c%40googlegroups.com.
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
/opt/wp/virtualenv/hegemon/bin/ansible --inventory /opt/wp/app/hegemon/ansible/hosts.prod --user mozart --private-key /root/.ssh/keys/prod p-backup01 -m s3 -a "aws_access_key=****** aws_secret_key=****** bucket=wp_confluence_backup src=/backup/confluence mode=put"
-m file
p-backup01 | FAILED >> {
"failed": true,
"msg": "missing required arguments: path"
}
Where as the s3 module does not.
Unfortunately even with the arguments that I pasted above I get the same error as I would get without arguments.
p-backup01 | FAILED >> {
"failed": true,
"msg": "Traceback (most recent call last):\n File \"<stdin>\", line 132, in <module>\nNameError: name 'module' is not defined\n",
"parsed": false
}
Is this a problem on my end or should I include this in my bug report? (I'm assuming that the s3 module is working for others ;)
I've opened a Github issue here: https://github.com/ansible/ansible/issues/8698
p-backup01 | FAILED >> {
"failed": true,
"msg": "boto required for this module"
}
It seems similar to this issue. I exported ANSIBLE_PYTHON_INTERPRETER as an environment variable and still received the same error.
export ANSIBLE_PYTHON_INTERPRETER=/opt/wp/virtualenv/hegemon/bin/python
I'm using a dynamic inventory so I'm unable to add it there and I would prefer to keep it out of group_vars. Does any one have any other suggestions?
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9a677786-dbb3-4c19-b7b6-9d5047c18681%40googlegroups.com.
Unfortunately this is an ad hoc command so there are no vars and I'm not using Tower. What is another way to insert this var into my command?
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/50d9b882-94d5-484a-a847-cdaf4110090b%40googlegroups.com.
ansible: error: no such option: -e
[defaults]
host_key_checking = false
legacy_playbook_variables = false
nocows = true
roles_path = /opt/wp/app/hegemon/ansible/roles
transport = ssh
ansible_python_interpreter = /opt/wp/virtualenv/hegemon/bin/python
Unfortunately that didn't help either.