However, it works when run manually: ansible -i all.yml -m raw -a "apt install -y python-minimal"
On Friday, September 22, 2017 at 6:28:07 PM UTC-7, Eric wrote: > > > I'm running an Ansible playbook to use the raw module, to install > python-minimal. > > The host is reachable. > The host can be SSH'ed into as root. > > However, when running the playbook below, it fails. > > It gives the error: > > "module_stdout": "bash: warning: setlocale: LC_ALL: cannot change > locale (en_US.UTF-8)\r\n/bin/sh: 1: /usr/bin/python: not found\r\n", > > > --- > # https://gist.github.com/gwillem/4ba393dceb55e5ae276a87300f6b8e6f > - hosts: all > > tasks: > - name: install python 2 > raw: test -e /usr/bin/python || (apt -y update && apt install -y > python-minimal) > > > -- 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/6600a1e1-e360-4a6f-baa6-b2d7edc6200f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
