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
updates-lqdn
Commits
f5350a88
Commit
f5350a88
authored
Jan 14, 2022
by
nono
Browse files
Ajout de tests sur le rôle
parent
a618a97d
Changes
3
Hide whitespace changes
Inline
Side-by-side
molecule/default/converge.yml
View file @
f5350a88
---
---
-
name
:
Converge
-
name
:
Converge
hosts
:
all
hosts
:
all
user
:
root
become
:
true
tasks
:
tasks
:
-
name
:
"
Include
updates-lqdn"
-
name
:
"
Include
updates-lqdn"
include_role
:
include_role
:
...
...
molecule/default/create.yml
deleted
100644 → 0
View file @
a618a97d
---
-
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 @
f5350a88
...
@@ -2,9 +2,14 @@
...
@@ -2,9 +2,14 @@
dependency
:
dependency
:
name
:
galaxy
name
:
galaxy
driver
:
driver
:
name
:
delegated
name
:
vagrant
provider
:
name
:
virtualbox
platforms
:
platforms
:
-
name
:
instance
-
name
:
instance
box
:
debian/bullseye64
memory
:
512
cpus
:
1
provisioner
:
provisioner
:
name
:
ansible
name
:
ansible
verifier
:
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