free-ebooks
ansible-role-free-ebooks
This Role checks every day free ebooks and sends them to slack channel.
Requirements
You must define in vars/main.yml
- "hooks" variable to your slack account
- "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
About
This Role checks every day free ebooks and sends them to slack channel.
Install
ansible-galaxy install Grzyboll/ansible-role-free-ebooks
License
Unknown
Downloads
23
Owner
Grzyboll means mushroom