This Role checks every day free ebooks and sends them to slack channel.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
handlers
meta
tasks
templates
tests
vars
.travis.yml
README.md

README.md

ansible-role-free-ebooks Build Status

This Role checks every day free ebooks and sends them to slack channel.

Requirements

You must define in vars/main.yml

  1. "hooks" variable to your slack account
  2. "channel" variable to your slack channel where comics will be displayed

Role Variables

# vars/main.yml

#Destination path
dest_path: /usr/local/bin

#Crontab settings
#Minute when the job should run ( 0-59, *, */2, etc )
minute: "0"
#Hour when the job should run ( 0-23, *, */2, etc )
hour: "7"
#Day of the month the job should run ( 1-31, *, */2, etc )
day: "*"
#Month of the year the job should run ( 1-12, *, */2, etc )
month: "*"
#Day of the week that the job should run ( 0-6 for Sunday-Saturday, *, etc )
weekday: "*"

#eBooks links
#https://www.packtpub.com/packt/offers/free-learning
packtpub_link: https://www.packtpub.com/packt/offers/free-learning
packtpub_src: www.packtpub.com

#https://mva.microsoft.com/ebooks
microsoft_link: https://mva.microsoft.com/ebooks
microsoft_src: mva.microsoft.com

#Slack channel settings
channel: e-books
username: podgrzybek
hooks: https://hooks.slack.com/services/yourslackhash
###### Attachments for channel settings
pretext: Found a new free eBook
author_name: https://github.com/Grzyboll

Dependencies

Example Playbook

    - hosts: local
      roles:
         - ansible-free-ebooks

License

MIT

Author Information

Grzyboll: pokiegogrzyba @gmail.com