ansible/roles/ldap_netdb/tasks/main.yml

23 lines
512 B
YAML

---
- name: Install dependencies
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
- python3
- python3-ldap3
- python3-requests
- name: Install netdb-update script
ansible.builtin.copy:
src: netdb-update.py
dest: /usr/local/sbin/netdb-update
mode: "0755"
owner: root
group: "{{ ansible_wheel }}"
- name: Install netdb-update cron job
ansible.builtin.cron:
name: update-netdb-data
minute: "10"
job: /usr/local/sbin/netdb-update