Dne 28.5.2015 v 20:29 Dennis Gilmore napsal(a):
> an example from fedora's koji setup, the arm, and x86 builders are all
> running
> Fedora 21, the ppc builders are running rhel. so for all the epel targets we
> would need to set the backend to be yum. but something on the fedora builders
> needs to know to translate yum to yum-deprecated.
Easy.
Instead of
- name: mock site-defaults.cfg
copy: src=builders/site-defaults.cfg dest=/etc/mock/site-defaults.cfg
mode=0644 owner=root group=mock
you will use:
- name: mock site-defaults.cfg
template: src=builders/site-defaults.cfg dest=/etc/mock/site-defaults.cfg
mode=0644 owner=root group=mock
--^^^^^^^^
and in that template use if-condition based on the value of
{{ansible_distribution}}
--
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys