Hi there!
I'm newer in ansible. I have one question and hope you'll help me with it.
For example I want add deb:
- name: add webmin deb's for {{ansible_distribution}}
{{ansible_distribution_version}} {{ansible_architecture}}
apt_repository: repo='http://software.virtualmin.com/gpl/debian/
virtualmin-jessie main' state=present
when: ansible_distribution == 'Debian' and ansible_distribution_release
== 'jessie'
but I don't want write this for all distro releases.
In the end I want received some thing like this:
- name: add webmin deb's for {{ansible_distribution}}
{{ansible_distribution_version}} {{ansible_architecture}}
apt_repository:
repo='http://software.virtualmin.com/gpl/{{ansible_distribution}}/
virtualmin-{{ansible_distribution_release}} main' state=present
when: ansible_distribution == 'Debian'
That is doesn't work right, because almost all ansible facts have first
letter in uppercase. How I can convert it to lowercase?
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 [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/e512b177-cfab-483e-8d6f-4df8eca05f92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.