move to copy
This commit is contained in:
parent
a71071dfcc
commit
c0ae5dcdcd
7 changed files with 80 additions and 73 deletions
|
@ -25,11 +25,24 @@
|
|||
- Run upgrade script
|
||||
- Ensure netbox systemd services are set up and up-to-date
|
||||
|
||||
- name: Ensure patch for adding custom pipeline code for OIDC group and role mapping is applied
|
||||
ansible.posix.patch:
|
||||
src: 0001_oidc_group_and_role_mapping_custom_pipeline.patch
|
||||
basedir: /opt/netbox/
|
||||
when: netbox__patch_oidc_group_and_role_mapping_custom_pipeline
|
||||
- name: Ensures custom pipeline code for OIDC group and role mapping is present
|
||||
ansible.builtin.copy:
|
||||
src: custom_pipeline_oidc_group_and_role_mapping.py
|
||||
dest: /opt/netbox/netbox/netbox/custom_pipeline_oidc_mapping.py
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
when: netbox__custom_pipeline_oidc_group_and_role_mapping
|
||||
become: true
|
||||
notify:
|
||||
- Ensure netbox systemd services are set up and up-to-date
|
||||
|
||||
- name: Ensures custom pipeline code for OIDC group and role mapping is not present
|
||||
ansible.builtin.file:
|
||||
path: /opt/netbox/netbox/netbox/custom_pipeline_oidc_mapping.py
|
||||
state: absent
|
||||
when: not netbox__custom_pipeline_oidc_group_and_role_mapping
|
||||
become: true
|
||||
notify:
|
||||
- Ensure netbox systemd services are set up and up-to-date
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue