inventory fix

This commit is contained in:
2026-01-30 15:03:59 -05:00
parent 3b4f887e2a
commit 520d5e3535
2 changed files with 8 additions and 8 deletions

8
Jenkinsfile vendored
View File

@@ -52,9 +52,9 @@ pipeline {
// Build the limit flag
def limitValue = ''
if (isDockerPlaybook) {
// Docker playbooks always target 'docker' tagged hosts
// If user provides a limit, use intersection (docker AND limit)
limitValue = params.LIMIT ? "docker:&${params.LIMIT}" : 'docker'
// Docker playbooks always target 'docker_hosts' group
// If user provides a limit, use intersection (docker_hosts AND limit)
limitValue = params.LIMIT ? "docker_hosts:&${params.LIMIT}" : 'docker_hosts'
} else {
limitValue = params.LIMIT ?: ''
}
@@ -67,7 +67,7 @@ pipeline {
echo "Check flag: '${checkFlag}'"
echo "Limit: '${limitValue}'"
if (isDockerPlaybook) {
echo "Docker playbook detected - targeting hosts with 'docker' tag"
echo "Docker playbook detected - targeting 'docker_hosts' group"
}
sh """