Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
piops-roles
security-lqdn
Commits
5a628c67
Commit
5a628c67
authored
Jan 18, 2022
by
nono
💻
Browse files
Ajout des fichiers pour les tests
parent
37e1fb74
Changes
3
Hide whitespace changes
Inline
Side-by-side
meta/main.yml
View file @
5a628c67
galaxy_info
:
author
:
your name
description
:
your role description
company
:
your company (optional)
role_name
:
security
author
:
Nono
description
:
Installation of security configuration on shared server
company
:
La Quadrature Du Net
namespace
:
lqdn
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
issue_tracker_url
:
https://git.laquadrature.net/lqdn-interne/piops-roles/security-lqdn/-/issues
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
...
...
@@ -50,4 +55,3 @@ galaxy_info:
dependencies
:
[]
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
\ No newline at end of file
molecule/default/create.yml
deleted
100644 → 0
View file @
37e1fb74
---
-
name
:
Create
hosts
:
localhost
connection
:
local
gather_facts
:
false
no_log
:
"
{{
molecule_no_log
}}"
tasks
:
# TODO: Developer must implement and populate 'server' variable
-
when
:
server.changed | default(false) | bool
block
:
-
name
:
Populate instance config dict
set_fact
:
instance_conf_dict
:
{
'
instance'
:
"
{{
}}"
,
'
address'
:
"
{{
}}"
,
'
user'
:
"
{{
}}"
,
'
port'
:
"
{{
}}"
,
'
identity_file'
:
"
{{
}}"
,
}
with_items
:
"
{{
server.results
}}"
register
:
instance_config_dict
-
name
:
Convert instance config dict to a list
set_fact
:
instance_conf
:
"
{{
instance_config_dict.results
|
map(attribute='ansible_facts.instance_conf_dict')
|
list
}}"
-
name
:
Dump instance config
copy
:
content
:
|
# Molecule managed
{{ instance_conf | to_json | from_json | to_yaml }}
dest
:
"
{{
molecule_instance_config
}}"
molecule/default/molecule.yml
View file @
5a628c67
...
...
@@ -2,9 +2,14 @@
dependency
:
name
:
galaxy
driver
:
name
:
delegated
name
:
vagrant
provider
:
name
:
virtualbox
platforms
:
-
name
:
instance
box
:
debian/bullseye64
memory
:
512
cpus
:
1
provisioner
:
name
:
ansible
verifier
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment