title: Error while installing rack gem in ruby
body: <p>While i am trying install rack gem using ansible, i get an error as :</p>
  
  <pre><code>ERROR:  Error installing rack:
          rack requires Ruby version &gt;= 2.2.2
  </code></pre>
  
  <p>I have installed rack along with the gems as :</p>
  
  <pre><code>- name: Install Ruby Gems   become: yes   gem: name={{ item }} state=latest user_install=no   with_items:
      - rubygems-update
      - r509
      - r509-ca-http
      - rack
  </code></pre>
  
  <p>My current version if is see using ruby --version : 2.0.0p648</p>
  
  <p>WHat is the problem , and if I have to update my ruby version and how can I update using ansible for Amazon Linux OS</p>