You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
|
|
|
|
- name: Register fqdn on discover server
|
|
|
|
uri:
|
|
|
|
url: "{{ discover_server_url }}/{{ global_ip_discover_register_pass }}"
|
|
|
|
status_code:
|
|
|
|
- 200
|
|
|
|
return_content: yes
|
|
|
|
validate_certs: yes
|
|
|
|
register: register_result
|
|
|
|
changed_when: "'Already' in register_result.content"
|
|
|
|
|
|
|
|
- name: Copy discover script
|
|
|
|
template:
|
|
|
|
src: discover.sh
|
|
|
|
dest: "{{ discover_script_location }}"
|
|
|
|
owner: "{{ system_user }}"
|
|
|
|
group: "{{ system_user }}"
|
|
|
|
mode: "u=rwx,g=rx,o="
|
|
|
|
validate: "{{ global_validate_shell_script }}"
|
|
|
|
|
|
|
|
- name: Configure crontab for discover script
|
|
|
|
cron:
|
|
|
|
user: "{{ system_user }}"
|
|
|
|
name: "ip_discover {{ domain }}"
|
|
|
|
minute: 0
|
|
|
|
job: "{{ discover_script_location }}"
|