September 23, 2015

Classes
Tags cli ubuntu

Install the SoftLayer CLI

Ansible playbook to install the SoftLayer CLI using pip on Ubuntu
- hosts: all
  sudo: yes
  tasks:
    - name: Update apt cache
      apt: update_cache=yes

    - name: Install pip for the install of the CLI
      apt:
        pkg: "{{ item }}"
        state: present
      when: ansible_os_family == 'Debian'
      with_items:
        - python-virtualenv
        - python-setuptools
        - python-pip

    - name: Install the SoftLayer CLI
      pip:
        name: softlayer

Feedback?

If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue