Discussion:
[ansible-project] the content option in module copy is dropped?
Steve Kieu
2015-07-21 01:12:07 UTC
Permalink
Hi just quick question - I noticed the latest documentation the feature to
use a string content for the file content in copy module is no longer
listed. Is it dropped in latest ansible?

I use it heavily for copying ssh key etc.. (encode b64 and decode back) if
it is dropped then it would be pretty daunting to me.

Kind regards
--
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-project+***@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/cf75492d-6b54-4d12-864d-2ddcf036d4b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Toshio Kuratomi
2015-07-21 18:14:47 UTC
Permalink
Post by Steve Kieu
Hi just quick question - I noticed the latest documentation the feature to
use a string content for the file content in copy module is no longer
listed. Is it dropped in latest ansible?
I use it heavily for copying ssh key etc.. (encode b64 and decode back) if
it is dropped then it would be pretty daunting to me.
We've talked about deprecating it because it seems like everything it
can do can be done by the template module instead. However, it hasn't
reached the point where we've taken any action to get rid of it yet.
As far as I can see, it is still documented here:
http://docs.ansible.com/ansible/copy_module.html

-Toshio
--
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-project+***@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/CAG9juEp-mqZehPVr-HyuBE1NJKPU6DmvA%3D%2Ba6KkMwAe92PTriQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Steve Kieu
2015-07-22 00:25:51 UTC
Permalink
There is one use case.below.

So I have role base which is base of every other role. In that the
defaul/main.yml I defined a users dict like:

users:
jumbo:
name: "jumbo"
sshcopykey: 'string'

The code of generate user etc is in role base.

I want in the sub role if it wants to overrides the users to generate
freely. So

If the sshcopykey is a file path or template path it is not work unless I
have to add these templates / file into role base folder structure (the
files/ or templates/ ) If I added in subrole it does not work as code to
implement it in role base it does not search for the sub role template path.

So I do not want to put in role base because it is technically not belong
to role base at all.

If I changes to use the content in copy I can achieve that cleanly. At
least for now.

Thanks
--
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-project+***@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/e7e7f98d-4c2d-425f-bf9a-e88be78effe1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...