ldap_netdb: ansible-lint fixes
This commit is contained in:
parent
fe8abc7e0a
commit
ff07e84ca6
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue