ldap_gravatar: Initial version of role

This commit is contained in:
Timo Makinen 2021-03-16 19:18:55 +00:00
parent b841119e1a
commit 015de5a8df
2 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,25 @@
---
- name: install dependencies
package:
name: "{{ item }}"
state: installed
with_items:
- python3-ldap3
- python3-requests
- name: install script
copy:
src: gravatar-update.py
dest: /usr/local/sbin/gravatar-update
mode: 755
owner: root
group: "{{ ansible_wheel }}"
- name: install cron job
cron:
name: gravatar-update
hour: "05"
minute: "10"
job: /usr/local/sbin/gravatar-update