Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

msg: Failed to find required executable pip when installing nginx on coreos #2189

@haozhenxiao

Description

@haozhenxiao

I'm following this tutorial to install nginx on coreos with ansible, on coreos, python is located at /home/core/bin, and my inventory looks like below:

[coreos]
10.11.49.207

[coreos:vars]
ansible_ssh_user=core
ansible_python_interpreter="PATH=/home/core/bin:$PATH python"

My yml file looks like this:

- name: example nginx website
hosts: coreos
sudo: true
tasks:
- name: Start etcd
  service: name=etcd.service state=started

- name: Install docker-py
  pip: name=docker-py

- name: pull container
  raw: docker pull nginx:1.7.1

- name: launch nginx container
  docker:
    image="nginx:1.7.1"
    name="example-nginx"
    ports="8080:80"
    state=running

when running the yml file, I got the following error:

msg: Failed to find required executable pip

FATAL: all hosts have already failed -- aborting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions