title: Ansible ufw module ERROR: Could not find a profile matching 'xxxxx'
body: <p>I'm working to setup UFW rules via Ansible. I'm able to get it installed, start it and deny everything. I then attempt to allow connections from http, https, and ssh.  All attempts to add the allow for those items are met with errors that look like:</p>
  
  <pre><code>failed: [lempy1] (item={u'service': u'http'}) =&gt; {"failed": true, "item": {"service": "http"}, "msg": "ERROR: Could not find a profile matching 'http'\n"}
  failed: [lempy1] (item={u'service': u'https'}) =&gt; {"failed": true, "item": {"service": "https"}, "msg": "ERROR: Could not find a profile matching 'https'\n"}
  failed: [lempy1] (item={u'service': u'ssh'}) =&gt; {"failed": true, "item": {"service": "ssh"}, "msg": "ERROR: Could not find a profile matching 'ssh'\n"}
  </code></pre>
  
  <p>The entire role looks like this:</p>
  
  <h3>tasks/main.yml</h3>
  
  <pre><code>     ---
      - name: Install ufw
        apt: name=ufw state=present
        tags:
          - security
  
      - name: Allow webservery things
        ufw:
          rule: allow
          name: '{{item.service}}'
        with_items:
          - service: http
          - service: https
          - service: ssh
        tags:
          - security
  
      - name: Start ufw
        ufw: state=enabled policy=deny
        tags:
          - security
  </code></pre>
  
  <p>Any idea why I wouldn't be able to allow these services? I am able to add the services properly when ssh'ing into the server and running <code>sudo ufw allow http</code>, etc.</p>