--- - 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-update