---
- apt_key: url=https://packagecloud.io/gpg.key state=present
- apt: name=apt-transport-https state=present
- apt_repository: repo="deb https://packagecloud.io/sr/cbk/ubuntu/ wily main" state=present
- apt_repository: repo="deb-src https://packagecloud.io/sr/cbk/ubuntu/ wily main" state=present
- apt_repository: repo="ppa:nilarimogard/webupd8" state=present
- apt: name=cbk={{cbk_version}} update_cache=yes

- group: name="{{cbk_group}}" system=yes state=present
- user:
    name="{{cbk_user}}"
    group="{{cbk_group}}"
    createhome=yes
    password=no
    shell=/bin/bash
    state=present

- template:
    dest="/etc/cbk.conf"
    src=cbk.conf.j2
    owner=root
    group=root

- template:
    dest="/etc/cron.daily/cbk"
    src=cron.daily.j2
    owner=root
    group=root
    mode=755

---
- apt_key: url=https://packagecloud.io/gpg.key state=present
- apt: name=apt-transport-https state=present
- apt_repository: repo="deb https://packagecloud.io/sr/cbk/ubuntu/ wily main" state=present
- apt_repository: repo="deb-src https://packagecloud.io/sr/cbk/ubuntu/ wily main" state=present
- apt_repository: repo="ppa:nilarimogard/webupd8" state=present
- apt: name=cbk={{cbk_version}} update_cache=yes

- group: name="{{cbk_group}}" system=yes state=present
- user:
    name="{{cbk_user}}"
    group="{{cbk_group}}"
    createhome=yes
    password=no
    shell=/bin/bash
    state=present

- template:
    dest="/etc/cbk.conf"
    src=cbk.conf.j2
    owner=root
    group=root

- template:
    dest="/etc/cron.daily/cbk"
    src=cron.daily.j2
    owner=root
    group=root
    mode=0750

Fix permissions on of cbk.conf
Fix permissions on of cbk.conf
