tech:ansible_docker_execution_environment
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:ansible_docker_execution_environment [2026/06/07 19:12] – modification externe 127.0.0.1 | tech:ansible_docker_execution_environment [2026/11/06 23:15] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Voir : | Voir : | ||
| - | FIXME2 | ||
| * [[notes_ansible_ansible-navigator|ansible-navigator]] | * [[notes_ansible_ansible-navigator|ansible-navigator]] | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| - | * [[https:// | + | * [|How to create execution environments using ansible-builder](https:// |
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| Ligne 33: | Ligne 32: | ||
| ~~~bash | ~~~bash | ||
| - | pip install --user ansible-builder> | + | pip install --user |
| ~~~ | ~~~ | ||
| Ligne 265: | Ligne 264: | ||
| name: ghcr.io/ | name: ghcr.io/ | ||
| - | # additional_build_files: | + | additional_build_files: |
| - | # - src: files/ansible.cfg | + | - src: files/ca.crt |
| - | # dest: configs | + | dest: files/ |
| additional_build_steps: | additional_build_steps: | ||
| Ligne 273: | Ligne 272: | ||
| # - ADD _build/ | # - ADD _build/ | ||
| prepend_base: | prepend_base: | ||
| - | # - RUN echo PLOP | + | # - RUN echo " |
| + | - ADD _build/ | ||
| + | - RUN update-ca-trust | ||
| append_final: | append_final: | ||
| # - RUN groupadd --gid 1000 vscode | # - RUN groupadd --gid 1000 vscode | ||
| Ligne 359: | Ligne 360: | ||
| Exemple de fichier bindep.txt : | Exemple de fichier bindep.txt : | ||
| * https:// | * https:// | ||
| + | |||
| + | |||
| + | ------- | ||
| + | |||
| + | |||
| + | # Execution environment | ||
| + | |||
| + | |||
| + | ## Usage | ||
| + | |||
| + | Creation d'un EE | ||
| + | ~~~bash | ||
| + | ansible-builder build -v 3 --tag ee-base: | ||
| + | ~~~ | ||
| + | |||
| + | Disable SSL/TLS for registry | ||
| + | ~~~bash | ||
| + | cat <<EOF > ~/ | ||
| + | [registries.insecure] | ||
| + | registries = [' | ||
| + | EOF | ||
| + | ~~~ | ||
| + | |||
| + | Push | ||
| + | ~~~bash | ||
| + | kubectl port-forward svc/ | ||
| + | |||
| + | podman tag localhost/ | ||
| + | podman push localhost: | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Lancer un playbook dans un EE avec ansible-runner ou ansible-navigator | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | ansible-runner run --container-image localhost/ | ||
| + | # ou | ||
| + | ansible-navigator run --mode stdout -u ansible ~/ | ||
| + | ~~~ | ||
| + | |||
| + | ## Autres | ||
| + | |||
| + | Analyse d'un EE | ||
| + | ~~~bash | ||
| + | ansible-navigator --eei localhost/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Hack Error " | ||
| + | |||
| + | ~~~bash | ||
| + | podman exec -ti kind-control-plane /bin/bash | ||
| + | ctr -n k8s.io image pull --plain-http=true 10.96.158.74: | ||
| + | ~~~ | ||
| + | |||
| + | PS : 10.96.158.74 for registry.test.svc.cluster.local | ||
tech/ansible_docker_execution_environment.1780852327.txt.gz · Dernière modification : de 127.0.0.1
