ldap_netdb: Initial version of role

This commit is contained in:
Timo Makinen 2020-09-01 18:12:21 +00:00
parent 7b201b31da
commit 55d7d954b3
3 changed files with 192 additions and 0 deletions

View file

@ -0,0 +1,23 @@
---
- name: install required python packages
package:
name: "{{ item }}"
state: installed
with_items:
- python3-ldap3
- python3-requests
- name: install netdb-update script
copy:
src: netdb-update.py
dest: /usr/local/sbin/netdb-update
mode: 755
owner: root
group: "{{ ansible_wheel }}"
- name: install netdb-update cron job
cron:
name: update-netdb-data
minute: 10
job: /usr/local/sbin/netdb-upate