NuCivic / ansible-dev-vm

8 stars 5 forks source link

Gems #24

Closed janette closed 9 years ago

janette commented 9 years ago

learn how to add this to the .yml

sudo apt-get install ruby-dev
sudo gem install
 bootstrap-sass
 breakpoint
 bundler
 compass-rgbapng
 compass_radix
 font-awesome-sass
 sassy-maps
 sassy-buttons
 singularitygs
 zen-grids
acouch commented 9 years ago

yes!

acouch commented 9 years ago

http://docs.ansible.com/gem_module.html

- gem: name=breakpoint state=latest
- gem: name=bootstrap-sass state=latest
- gem: name=breakpoint  state=latest
- gem: name=bundler  state=latest
- gem: name=compass-rgbapng  state=latest
- gem: name=compass_radix  state=latest
- gem: name=font-awesome-sass  state=latest
- gem: name=sassy-maps  state=latest
- gem: name=sassy-buttons  state=latest
- gem: name=singularitygs  state=latest
- gem: name=zen-grids  state=latest
janette commented 9 years ago

update config.yml

# ruby
 rvm1_rubies:
  - 'ruby-2.1.3'

intall requirements

ansible-galaxy install -r requirements.txt --force
vagrant provision
janette commented 9 years ago

seems like it provisions correctly

TASK: [rvm_io.rvm1-ruby | Detect rvm binary] ********************************** 
ok: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Detect rvm installer] ******************************* 
ok: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Detect current rvm version] ************************* 
skipping: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Install rvm installer] ****************************** 
changed: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Configure rvm installer] **************************** 
changed: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Import GPG keys] ************************************ 
ok: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Install rvm] **************************************** 
changed: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Update rvm] ***************************************** 
skipping: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Configure rvm] ************************************** 
changed: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Detect if rubies are installed] ********************* 
ok: [nucvicdev] => (item=ruby-2.1.3)

TASK: [rvm_io.rvm1-ruby | Install rubies] ************************************* 
changed: [nucvicdev] => (item={u'cmd': [u'/usr/local/rvm/bin/rvm', u'ruby-2.1.3', u'do', u'true'], u'end': u'2015-07-13 22:41:32.479984', u'stderr': u'Ruby ruby-2.1.3 is not installed.', u'stdout': u'', 'item': 'ruby-2.1.3', u'changed': False, u'rc': 2, 'failed': False, u'warnings': [], u'delta': u'0:00:00.269395', 'invocation': {'module_name': u'command', 'module_args': u'/usr/local/rvm/bin/rvm ruby-2.1.3 do true'}, 'stdout_lines': [], 'failed_when_result': False, u'start': u'2015-07-13 22:41:32.210589'})

TASK: [rvm_io.rvm1-ruby | Detect default ruby version] ************************ 
ok: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Select default ruby] ******************************** 
changed: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Install bundler if not installed] ******************* 
ok: [nucvicdev] => (item=ruby-2.1.3)

TASK: [rvm_io.rvm1-ruby | Symlink ruby related binaries on the system path] *** 
changed: [nucvicdev] => (item=bundle)
changed: [nucvicdev] => (item=bundler)
changed: [nucvicdev] => (item=erb)
changed: [nucvicdev] => (item=executable-hooks-uninstaller)
changed: [nucvicdev] => (item=gem)
changed: [nucvicdev] => (item=irb)
changed: [nucvicdev] => (item=rake)
changed: [nucvicdev] => (item=rdoc)
changed: [nucvicdev] => (item=ri)
changed: [nucvicdev] => (item=ruby)
changed: [nucvicdev] => (item=testrb)

TASK: [rvm_io.rvm1-ruby | Detect if ruby version can be deleted] ************** 
skipping: [nucvicdev]

TASK: [rvm_io.rvm1-ruby | Delete ruby version] ******************************** 
skipping: [nucvicdev]

TASK: [nucivic | Setup | Install required packages.] ************************** 
changed: [nucvicdev] => (item=ruby-dev,zlib1g-dev,build-essential,libssl-dev,libreadline-dev,libyaml-dev,libsqlite3-dev,sqlite3,libxml2-dev,libxslt1-dev,libcurl4-openssl-dev,python-software-properties,libgdbm-dev,libncurses5-dev,automake,libtool,bison,libffi-dev)

TASK: [nucivic | gem name=breakpoint state=latest] **************************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=bootstrap-sass state=latest] ************************ 
changed: [nucvicdev]

TASK: [nucivic | gem name=breakpoint  state=latest] *************************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=bundler  state=latest] ****************************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=compass  state=latest] ****************************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=compass-rgbapng  state=latest] ********************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=compass_radix  state=latest] ************************ 
changed: [nucvicdev]

TASK: [nucivic | gem name=font-awesome-sass  state=latest] ******************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=sassy  state=latest] ******************************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=sassy-maps  state=latest] *************************** 
changed: [nucvicdev]

TASK: [nucivic | gem name=sassy-buttons  state=latest] ************************ 
changed: [nucvicdev]

TASK: [nucivic | gem name=singularitygs  state=latest] ************************ 
changed: [nucvicdev]

TASK: [nucivic | gem name=zen-grids  state=latest] **************************** 
changed: [nucvicdev]

TASK: [nucivic | Setup | Install required packages.] ************************** 
changed: [nucvicdev] => (item=figlet,ctags,unzip,vim,git,curl)

but only get these

*** LOCAL GEMS ***

bigdecimal (1.2.4)
bundler (1.7.3)
bundler-unload (1.0.2)
executable-hooks (1.3.2)
gem-wrappers (1.2.7, 1.2.5)
io-console (0.4.2)
json (1.8.1)
minitest (4.7.5)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
test-unit (2.1.3.0)
acouch commented 9 years ago

These have been added.