ldap_netdb: ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-30 15:51:40 +00:00
parent fe8abc7e0a
commit ff07e84ca6

View file

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