Simple example

This commit is contained in:
southerntofu 2020-04-16 23:28:43 +02:00
parent 7a9cb87ea6
commit db54e1a3b0
3 changed files with 31 additions and 0 deletions

3
i18n/en.yml Normal file
View File

@ -0,0 +1,3 @@
first-play: First play
create-tmp-file: Create a temporary file
delete-tmp-file: Delete the temporary file

12
i18n/fr.yml Normal file
View File

@ -0,0 +1,12 @@
task: Tâche
handler: Gestionnaire
SUMMARY: RÉSUMÉ
Gathering Facts: Rassembler les faits
changed: changéE
ok: ok
ignored: ignoré
failed: échoué
unreachable: injoignable
first-play: Première recette
create-tmp-file: Créer un fichier temporaire
delete-tmp-file: Supprimer le fichier temporaire

16
playbook.yml Normal file
View File

@ -0,0 +1,16 @@
- name: first-play
hosts: all
tasks:
# Only appears in debug mode because it never fails
- name: check-passwd-exists
file:
path: /etc/passwd
state: file
- name: create-tmp-file
file:
path: /tmp/ansible_i18n_test
state: touch
- name: delete-tmp-file
file:
path: /tmp/ansible_i18n_test
state: absent