- name: ensure packages required for buildslave are installed
  action: yum name={{ item }} state=latest
  with_items:
    - buildbot-slave
    - git
    - rpmlint
    - koji
    - bodhi-client
    - python-virtualenv
    - gcc
    - libcurl-devel
    - rpm-build
    - pylint
    - python-pep8
    - moreutils

- name: add the buildslave user
  user: name=buildslave
