Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-public
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
system
ansible-public
Commits
53172068
Commit
53172068
authored
2 years ago
by
Baptiste DE RENZO
Browse files
Options
Downloads
Patches
Plain Diff
Fix netcpature idempotence, Refs
#37331
parent
90c399cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/netcapture/tasks/main.yml
+11
-6
11 additions, 6 deletions
roles/netcapture/tasks/main.yml
with
11 additions
and
6 deletions
roles/netcapture/tasks/main.yml
+
11
−
6
View file @
53172068
...
...
@@ -8,24 +8,29 @@
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)
-
name
:
netcapture config
-
name
:
create
netcapture config
ansible.builtin.template
:
src
:
netcapture.json.j2
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
:
src
:
miris-api.json.j2
dest
:
/etc/miris/conf/api.json
mode
:
"
644"
dest
:
"
{{
netcapture_conf_folder
}}/api.json"
mode
:
u=rw,g=r,o=r
when
:
miris_config_file.stat.exists ==
false
-
name
:
netcapture config dir
ansible.builtin.file
:
path
:
"
{{
netcapture_conf_folder
}}"
group
:
video
mode
:
u=rwX,g=rwX,o=r
recurse
:
true
state
:
directory
-
name
:
netcapture media dir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment