-
-
Notifications
You must be signed in to change notification settings - Fork 83
Support for installing/configuring CUSTOM_VALIDATORS #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 6 commits
dd54add
6c1c9d0
bdc808b
cd72640
b83128d
759a132
6b605ad
cb4c554
905a09f
0cbefee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,6 +169,30 @@ | |
| notify: | ||
| - reload netbox.service | ||
|
|
||
| # custom validators | ||
| - name: Copy NetBox custom validators into shared | ||
| ansible.builtin.copy: | ||
| src: "{{ netbox_custom_validators_file }}" | ||
| dest: "{{ netbox_shared_path }}/custom_validators.py" | ||
| owner: "{{ netbox_user }}" | ||
| group: "{{ netbox_group }}" | ||
| ignore_errors: yes | ||
lae marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| when: | ||
| - netbox_custom_validators_file is defined and netbox_custom_validators_enabled | ||
| notify: | ||
| - reload netbox.service | ||
|
|
||
| - name: Symlink/Remove NetBox local_settings.py file into/from the active NetBox release | ||
|
||
| file: | ||
| src: "{{ netbox_shared_path + '/custom_validators.py' if netbox_custom_validators_enabled else omit }}" | ||
| dest: "{{ netbox_current_path }}/netbox/custom_validators.py" | ||
| owner: "{{ netbox_user }}" | ||
| group: "{{ netbox_group }}" | ||
| state: "{{ 'link' if netbox_custom_validators_enabled else 'absent' }}" | ||
| notify: | ||
| - reload netbox.service | ||
|
|
||
|
|
||
lae marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Copy NetBox scripts into SCRIPTS_ROOT | ||
| copy: | ||
| src: "{{ item.src }}" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.