Skip to content
Snippets Groups Projects
Commit 552f577d authored by Baptiste DE RENZO's avatar Baptiste DE RENZO
Browse files

Merge branch 't37331-fix-idempotence' into 'main'

Fix netcpature idempotence, Refs #37331

See merge request sys/ansible-public!37
parents 90c399cc 53172068
No related branches found
No related tags found
No related merge requests found
...@@ -8,24 +8,29 @@ ...@@ -8,24 +8,29 @@
retries: 60 retries: 60
until: apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg) until: apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
- name: netcapture config - name: create netcapture config
ansible.builtin.template: ansible.builtin.template:
src: netcapture.json.j2 src: netcapture.json.j2
dest: /etc/miris/netcapture.json dest: /etc/miris/netcapture.json
mode: "644" mode: u=rw,g=r,o=r
- name: netcapture miris - name: check if miris api config exists
ansible.builtin.stat:
path: "{{ netcapture_conf_folder }}/api.json"
register: miris_config_file
- name: create netcapture miris api config
ansible.builtin.template: ansible.builtin.template:
src: miris-api.json.j2 src: miris-api.json.j2
dest: /etc/miris/conf/api.json dest: "{{ netcapture_conf_folder }}/api.json"
mode: "644" mode: u=rw,g=r,o=r
when: miris_config_file.stat.exists == false
- name: netcapture config dir - name: netcapture config dir
ansible.builtin.file: ansible.builtin.file:
path: "{{ netcapture_conf_folder }}" path: "{{ netcapture_conf_folder }}"
group: video group: video
mode: u=rwX,g=rwX,o=r mode: u=rwX,g=rwX,o=r
recurse: true
state: directory state: directory
- name: netcapture media dir - name: netcapture media dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment