title: Ansible Yum Module pending transactions error
body: <p>I'm very new to Ansible. 
  I am trying to follow a tutorial on the concept of Roles in Ansible.
  I have the following Master Playbook:</p>
  
  <pre><code>--- # Master Playbook for Webservers
  - hosts: apacheweb
    user: test
    sudo: yes
    connection: ssh
    roles:
      - webservers
  </code></pre>
  
  <p>Which refers to the <em>webservers</em> role that has the following <em>task/main.yml</em>:</p>
  
  <pre><code>- name: Install Apache Web Server
    yum: pkg=httpd state=latest
    notify: Restart HTTPD
  </code></pre>
  
  <p>And a <em>handler/main.yml</em>:</p>
  
  <pre><code>- name: Restart HTTPD
    service: name=httpd state=started
  </code></pre>
  
  <p>When I execute the Master Playbook, mentioned above, I get the following error:</p>
  
  <pre><code>TASK [webservers : Install Apache Web Server] **********************************
  fatal: [test.server.com]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "The following packages have pending transactions: httpd-x86_64", "rc": 128, "results": ["The following packages have pending transactions: httpd-x86_64"]}
  </code></pre>
  
  <p>I cannot understand what this error corresponds to. There does not seem to be anything similar, based on my research, that could suggest the issue with the way I am using the Yum module.</p>
  
  <p>NOTE: Ansible Version:</p>
  
  <pre><code>ansible 2.2.1.0
    config file = /etc/ansible/ansible.cfg
  </code></pre>