---

- name: Deploy Lux GPG Key
  copy:
    content: |
      -----BEGIN PGP PUBLIC KEY BLOCK-----
      Version: GnuPG v1.2.6 (GNU/Linux)
      
      mQGiBEHKmaIRBADglFjC9YNuo8I2XVkHzwTyq2sWjTLzak1LDz23ZWaYNlRap/WJ
      46/XKbv/0YzREOt3tx2ynEqf8RUtcoILOMyzTp5K3WlQwiqFfSPXNZDnuaKGTK7B
      Mc0I7DtSR72brFaigb1dSAe6Ubrnc99kgDBhFyK7opsV2s9GyPkcb1RyMwCghsiF
      7y5RnWb1A1vJjzctWkkDa2UEAKjgaM1yr4SmFmSYzqyMno9kdzXpsmR00D1U5noh
      lsUPNZ940kf1u0xr232ETqrQUMcpY+9OXOCifq298I7BjJhZ+3JrnnHEHY4EQtqM
      jK8EdPUlyV12HXlxJcWLPTtKrb1f8MJkyf2IXZsdKKh97nlnszO6xWQ/SIN77i5f
      Dx8iBADYTt2WRI1pz/t/ArlZJtN2g5PJuGsajeiNZPO6Czfrd3dBeV7wxlR0z+ZX
      5pPhOE2xG30P/mOGxTRrb9/6LgiDk4RykFHdCsZaehDj47OvWF/KvSrFm4rVQ+uX
      YUumBQJJ3dl6kNnhv8KkC4IaaJUyh7uH7BxfhtmPajNbrlreULQlTHVpZ2kgSW90
      dGkgKGx1eCkgPHJwbXMxMDBAaW90dGkuYml6PoheBBMRAgAeBQJEPKN7AhsDBgsJ
      CAcDAgMVAgMDFgIBAh4BAheAAAoJEDiLTHVT5Oep01YAnRmBtK46TF2W76jF3WJy
      pmxJW1FkAJwJyMAtQ7D25CmcKAcsVxBAGB6017kCDQRBypnFEAgAm8/+985fNF1G
      4IPSvJxVIdJzB0gQaqPYjcvijzQLm0p7EKBo+xn7py9MaIU1hmiFw19hY1B14kLl
      ktTC5osUQ2aS4z9JvsZAqB3JY8PpL9Saf3oP+napyHI1jmmvTJiO60swBjW8A69w
      lpI8q5wgPAkB6ZiWb8KtMJ0cJhp7AbaenSxQ3zlFtQ4nVC7IeHQHYB1c+pyPMKib
      XwaS30nelgNe22DT6hsPS0PG4kf0yJo/kUFutj1NrnL2odTiY/sqgUtoDE5kJpnD
      iqV7ecg62X6bUPkD05BC/7+tpmiCmO2XksIrl7eWrfC3cyAENAe4oHpqbtMIU3/T
      31N4YUGM/wADBQf8CAGxlKIz8tWzNrL1elPfzAhq6IXF6PRKX/tc9MYxqqGaOTuP
      Ql7lmRIOUVSHykl4KEHA0qTmJjLiK9LHOyCB3REGTTuuDXR4OIsCF29Quk0x8dym
      DfhK8t4eI6/hC95t1enHj/ZMdNoN+5PQp0VAf6wxvkcwu0J2bdoHLH5Mo+kYk1sW
      ysdIHbEY2+A1XL39k5NS4X5kY9EEqRyjJAsiel9LBTeXZ8a3CCrxnIjcKncYZ730
      ytdQ4KUwQrbFTLbC3Sy51uqVmWVHo2k6oypF2BNmmVlm8V3wnVIAcHY9I+tvupWl
      DBDbi7tAqKCX8Lwfw9+Z0KQGAAzJNP560mx2MIhJBBgRAgAJBQJBypnFAhsMAAoJ
      EDiLTHVT5Oep1BgAn13Z9p6Rm/klPvckR2RVEzu008TVAJoDBmSGLOylZbd9J0zw
      X6VV+SGIxg==
      =m5T0
      -----END PGP PUBLIC KEY BLOCK-----
    dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-LUX
  tags: repo

- name: Configure lux repository
  yum_repository:
    name: lux
    description: CentOS $releasever - $basearch - Lux
    baseurl: http://repo.iotti.biz/CentOS/$releasever
    gpgcheck: True
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LUX
    includepkgs:
      - tomcat*
      - apache-*
      - ecj-*
  tags: repo
