|
|
@ -15,7 +15,10 @@
|
|
|
|
update_cache: yes
|
|
|
|
update_cache: yes
|
|
|
|
with_items:
|
|
|
|
with_items:
|
|
|
|
- make
|
|
|
|
- make
|
|
|
|
|
|
|
|
- mosh
|
|
|
|
|
|
|
|
- libterm-readkey-perl
|
|
|
|
- python-pip
|
|
|
|
- python-pip
|
|
|
|
|
|
|
|
- software-properties-common
|
|
|
|
- zsh
|
|
|
|
- zsh
|
|
|
|
become: yes
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
|
|
|
@ -25,24 +28,34 @@
|
|
|
|
- zsh
|
|
|
|
- zsh
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
- hosts: all
|
|
|
|
|
|
|
|
name: install Ansible
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- stat: path=/usr/bin/local/chruby-exec
|
|
|
|
- apt_repository:
|
|
|
|
|
|
|
|
repo: ppa:ansible/ansible
|
|
|
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- apt:
|
|
|
|
|
|
|
|
name: ansible
|
|
|
|
|
|
|
|
update_cache: yes
|
|
|
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
|
|
|
|
name: install Ruby
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- stat: path=/usr/local/bin/chruby-exec
|
|
|
|
register: chruby
|
|
|
|
register: chruby
|
|
|
|
- import_tasks: irregular-apocalypse/chruby.yml
|
|
|
|
- import_tasks: irregular-apocalypse/chruby.yml
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
version: 0.3.9
|
|
|
|
version: 0.3.9
|
|
|
|
when: chruby.stat.exists == False
|
|
|
|
when: chruby.stat.exists == False
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- stat: path=/usr/bin/local/ruby-install
|
|
|
|
- stat: path=/usr/bin/local/ruby-install
|
|
|
|
register: ruby_install
|
|
|
|
register: ruby_install
|
|
|
|
- import_tasks: irregular-apocalypse/ruby-install.yml
|
|
|
|
- import_tasks: irregular-apocalypse/ruby-install.yml
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
version: 0.6.1
|
|
|
|
version: 0.6.1
|
|
|
|
when: ruby_install.stat.exists == True
|
|
|
|
when: ruby_install.stat.exists == False
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
- stat: path=~/.rubies
|
|
|
|
tasks:
|
|
|
|
register: rubies
|
|
|
|
- name: install Ruby
|
|
|
|
- command: ruby-install ruby
|
|
|
|
command: ruby-install ruby
|
|
|
|
when: rubies.stat.exists == False
|
|
|
|