#126: python3 only means ansible won't work ------------------------------+--------------------- Reporter: dustymabe | Owner: Type: task | Status: new Priority: major | Milestone: Future Component: Cloud Base Image | Resolution: Keywords: meeting | ------------------------------+--------------------- Comment (by toshio): I like the installation of py2 route (as atomic seems to have done) :-) but I know that it can be a problem for projects worried about space. So some information on ansible's raw module to help out with bootstrapping if that's what you decide to go with: http://docs.ansible.com/ansible/raw_module.html The raw module exists to bootstrap a remote environment to be able to run ansible modules there at all. It can basically be used to invoke shell commands on the remote host without some of the niceties that the command and shell module give you (because with them, we have python installed on the remote host so we can do more complex things.) If your environment has a system package manager then you want to do something like: {{{ (ad hoc mode): ansible CLOUDHOST -m raw -a 'dnf install -y python2 python-dnf' (from a playbook): - hosts: CLOUDHOST tasks: - raw: dnf install -y python2 python-dnf - dnf: state: present name: - OTHER_PACKAGE_FOR_IMPORTANT_MODULES - ANOTHER_IMPORTANT_PACKAGE }}} I would consider python2 (which is the only thing we document upstream as essential for everything) and the python modules to get the ansible module for your package manager running are the two most essential things. You could also recommend that people install things like the python2 selinux bindings since some pretty basic modules depend on it but you could also make that a second step using the dnf module if you like. We (upstream ansible) would be willing to host some documentation with our other docs on getting ansible to run on distros that don't have python3 by default if you want to write it or we could link to documentation that you write on your own infrastructure if you want. Let us know if you want us to help out in that way. I'm abadger1999 on irc.freenode.net. The other devs and I tend to hang out in #ansible-devel. -- Ticket URL: <https://fedorahosted.org/cloud/ticket/126#comment:3> cloud <https://fedorahosted.org/cloud> Fedora Cloud Working Group Ticketing System _______________________________________________ cloud mailing list cloud@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/cloud Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct