Mathieu Trossevin
7c632352a0
Replace the include
module with include_tasks
or import_tasks
...
The behaviour of the `include` module is badly defined (it try to choose
between statically importing the tasks and dynamically including them)
and can cause problems depending on any number of constraints (mostly if
it choose the wrong behaviour).
Replace it with the `import_tasks` (always statically import tasks) unless
the `include` is in a loop in which case we replace it with
`include_tasks` (always dynamically include tasks).
2023-01-03 14:43:42 +01:00
Jérémy Lecour
1728eaee68
Revert "Add “when: not ansible_check_mode” to allow more --check"
...
gitea/ansible-roles/pipeline/head This commit looks good
This reverts commit fafff25c20
.
This reverts commit e64471c5a8084f95a8e6f955d3fa918c55b8e846.
2022-12-14 07:41:18 +01:00
David Prevot
d4f58b9395
Drop duplicate when keys introduced in fafff25c20
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-12 14:29:07 +01:00
David Prevot
fafff25c20
Add “when: not ansible_check_mode” to allow more --check
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-02 17:40:43 +01:00
Jérémy Lecour
26f9d171a4
lxc-solr: detect the real partition options
2022-09-26 23:46:29 +02:00
Ludovic Poujol
e79141d2d2
lxc: Fail if /var is nosuid
2022-02-17 16:25:20 +01:00
William Hirigoyen (Evolix)
bd39adaf68
Fail if /var has nodev or noexec option enabled.
continuous-integration/drone/push Build was killed
2022-01-11 11:48:57 +01:00
William Hirigoyen (Evolix)
14883aa95e
Ensure that /var is mounted with dev and exec options prior to LXC container creation.
continuous-integration/drone/push Build was killed
2022-01-11 11:02:09 +01:00
Jérémy Lecour
b293cf2cf9
Install python 2 or 3 libraries according to running python version
2021-09-30 17:05:10 +02:00
Jérémy Lecour
dc1a01ce37
lxc: fix dependencies
2021-09-30 12:10:55 +02:00
Jérémy Lecour
9c8dd743c8
Use python3 packages on Debian 11 and later
2021-07-02 21:16:15 +02:00
Jérémy Lecour
2ed77c60f0
Improve Ansible syntax
...
replace « x | changed » by « x is changed »
add explicit « bool » filter
use « length » filter instead of string comparison
2021-05-09 23:06:42 +02:00
Jérémy Lecour
7a3e6cf61a
lxc: install apparmor on Debian 10
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-04-17 15:57:22 +02:00
Jérémy Lecour
968973d1f4
whitespaces and syntax
2020-04-17 15:56:54 +02:00
Ludovic Poujol
93c043c8e0
(fix) lxc: Fix container existance check to be able to run in check_mode
2020-04-08 17:57:46 +02:00
Ludovic Poujol
9b80db3772
lxc: Don't stop the container if it already exists
2020-04-01 17:17:00 +02:00
Jérémy Lecour
7283e34077
Replace version_compare() with version()
2020-02-25 10:45:35 +01:00
Jérémy Lecour
79bb6103b8
Change "|version_compare" with "is version_compare"
2019-12-31 10:18:19 +01:00
Jérémy Lecour
16c44ab867
lxc : add name of container in task names
2019-10-21 15:26:03 +02:00
Ludovic Poujol
4aaeb4590b
lxc: rely on lxc_container module instead of command module
2019-10-02 16:32:20 +02:00
Ludovic Poujol
ae97276e13
lxc: remove useless loop in apt execution
2019-10-01 17:54:13 +02:00
Jérémy Lecour
1e28210834
whitespaces and syntax
2019-06-21 10:36:32 +02:00
Tristan PILAT
b2e079101e
Add xz-utils and debootstrap to lxc task
2019-06-17 12:17:46 +02:00
Tristan PILAT
b6e6839419
Update lxc-create command in create-container.yml
2019-06-17 12:17:46 +02:00
Romain Dessort
8ed1aaf160
Fix multiple bugs in lxc role after testing
2017-08-24 12:09:41 -04:00
Romain Dessort
39bc3d27fb
Add role for LXC
2017-08-22 11:32:32 -04:00