ansible in Fedora 23+ (python3)

Kevin Fenzi kevin at scrye.com
Fri Nov 20 17:12:54 UTC 2015


On Fri, 20 Nov 2015 09:32:59 +0100
Petr Spacek <pspacek at redhat.com> wrote:

> I would say nothing... Following playbook snippet is just enough to
> go from bare minimal Fedora 23 to Fedora 23 which can run Ansible
> modules:
> 
> - hosts: vm_templates
>   gather_facts: False
>   tasks:
>   - name: install packages for ansible support
>     raw: dnf -y install python python2-dnf

Sure, but it's not idempotent.

Having a group available at the install step I think is still handy,
because if you know you are going to be using ansible you can just add
that group from the list of groups on the dvd.
 
> Maybe we can get a patch to ansible which prints a useful hint when
> Python 2 interpreter is not found on the target system?
> 
> I mean something like:
> "Huh, there is no Python 2 on the system <hostname>.
> Please use gather_facts: False & raw module to install Python 2
> package."
> 
> It would help even to users who do not use kickstarts, e.g. when you
> download a image from somewhere and it does not work with Ansible by
> default.

Sure, sounds like a nice RFE upstream. :) 

kevin 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20151120/151238c7/attachment.sig>


More information about the devel mailing list