feat(jenkins): add role to deploy jenkins

This commit is contained in:
2025-02-04 17:27:12 +01:00
parent b79ab788d8
commit 94f15cc402
11 changed files with 214 additions and 0 deletions

View File

@ -0,0 +1,13 @@
---
- name: Restart jenkins container '{{ jenkins_container_name }}'
community.docker.docker_container:
name: "{{ jenkins_container_name }}"
state: "started"
restart: true
comparisons:
'*': "ignore"
when:
- jenkins_deployment_method == 'docker'
- jenkins_container_state == 'started'
listen: jenkins_restart
ignore_errors: "{{ ansible_check_mode }}"