Outils pour utilisateurs

Outils du site


tech:notes_ansible_plugins

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:notes_ansible_plugins [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:notes_ansible_plugins [2025/11/09 18:48] (Version actuelle) Jean-Baptiste
Ligne 11: Ligne 11:
 * https://vincent.bernat.ch/fr/blog/2020-ecrire-module-ansible * https://vincent.bernat.ch/fr/blog/2020-ecrire-module-ansible
 * https://blog.toast38coza.me/custom-ansible-module-hello-world/ * https://blog.toast38coza.me/custom-ansible-module-hello-world/
 +
  
 == Hello world == Hello world
Ligne 16: Ligne 17:
 Plugin simple en bash et dans un rôle Plugin simple en bash et dans un rôle
  
-<code yaml play-test-plugin.yml>+''play-test-plugin.yml'' 
 +<code yaml>
 #! /usr/bin/env ansible-playbook #! /usr/bin/env ansible-playbook
  
Ligne 28: Ligne 30:
  
  
-<code bash roles/plugin/library/plug1>+''roles/plugin/library/plug1'' 
 +<code bash>
 #! /bin/bash #! /bin/bash
  
Ligne 36: Ligne 39:
  
  
- +''roles/hello/tasks/main.yml'' 
-<code yaml roles/hello/tasks/main.yml>+<code yaml>
 --- ---
  
tech/notes_ansible_plugins.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki