Fixed conditionals for docker herkou and rvm installs
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
apt: update_cache=yes
|
||||
|
||||
- name: Upgrade APT to the lastest packages
|
||||
apt: upgrade=safe
|
||||
apt: upgrade=dist
|
||||
|
||||
- name: Install htop
|
||||
apt: name=htop state=present
|
||||
@@ -49,18 +49,19 @@
|
||||
- name: Is docker installed
|
||||
shell: which docker
|
||||
register: docker_installed
|
||||
failed_when: "docker_installed.rc == 2 or docker_installed.rc == 3"
|
||||
|
||||
- name: Get docker
|
||||
shell: curl -sSL https://get.docker.com/ | sh
|
||||
when: docker_install is none
|
||||
when: docker_installed.stdout == ""
|
||||
|
||||
- name: Get docker compose
|
||||
shell: curl -L https://github.com/docker/compose/releases/download/1.5.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
||||
when: docker_install is none
|
||||
when: docker_installed.stdout == ""
|
||||
|
||||
- name: Link docker compose
|
||||
shell: chmod +x /usr/local/bin/docker-compose
|
||||
when: docker_install is none
|
||||
when: docker_installed.stdout == ""
|
||||
|
||||
- name: Set timezone to NewYork
|
||||
shell: timedatectl set-timezone America/New_York
|
||||
|
||||
Reference in New Issue
Block a user