Skip to content

Commit

Permalink
Validate configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
lae committed May 29, 2018
1 parent 1efe2f3 commit 6e0b983
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/deploy_netbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
owner: "{{ netbox_user }}"
group: "{{ netbox_group }}"
mode: 0640
validate: "{{ netbox_virtualenv_path }}/bin/python -c \"import py_compile,os; f=r'%s'; c='/tmp/' + os.path.basename(os.path.dirname(f)) + '-' + os.path.basename(f) + 'c'; py_compile.compile(f, c); os.remove(c)\""
notify:
- reload netbox.service

Expand All @@ -58,6 +59,7 @@
owner: "{{ netbox_user }}"
group: "{{ netbox_group }}"
mode: 0640
validate: "{{ netbox_virtualenv_path }}/bin/python -c \"import py_compile,os; f=r'%s'; c='/tmp/' + os.path.basename(os.path.dirname(f)) + '-' + os.path.basename(f) + 'c'; py_compile.compile(f, c); os.remove(c)\""
notify:
- reload netbox.service
when:
Expand Down

0 comments on commit 6e0b983

Please sign in to comment.