-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use files
?
#849
Comments
|
wow, ahaha, you are righ! so, I use like this now
But it says now |
@felixfontein by the way, if I put
I have error |
Should compose file be on ansible machine or on the target machine that I configure via ansible? My files just on ansible machine now. |
The compose file must be on the same machine as where the module is run. If you don't use In any case, using relative paths is usually not a good idea since they depend a lot on where exactly - in particular from which directory - the module is executed. It's generally better to use absolute paths. |
Closing since the above comment likely resolves this. |
I haven't found in docs how to use files. I try something like
And get an error like:
ERROR! A malformed block was encountered while loading tasks: {'community.docker.docker_compose': {'files': ['./mycustom-compose.yml']}} should be a list or None but is <class 'ansible.parsing.yaml.objects.AnsibleMapping'>
The text was updated successfully, but these errors were encountered: