I just want to confirm, that I got this working with Andreas' instructions.
I just added these lines to my inventory file: *[xenials] # Ubuntu 16.04 hosts without python2* *myhost.example.org ansible_user=root* *[xenials:vars] * *ansible_python_interpreter=/usr/bin/python2.7 * [server] # This already existed myhost.example.org ansible_user=root And these to my init.yml: *- hosts: xenials * * gather_facts: False * * tasks: * * - name: apt-get update * * raw: apt-get update -qq * * - name: Install python 2.7 * * raw: apt-get install -qq python2.7 * Thanks Andreas! -- Aapo -- 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/0cc4fe7d-c8c0-4205-b583-a266ac79630b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
