<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cours/TP Ansible</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/</link><description>Recent content on Cours/TP Ansible</description><generator>Hugo</generator><language>fr-fr</language><atom:link href="https://cours-ansible-vagrant-ed3ca6.gitlab.io/index.xml" rel="self" type="application/rss+xml"/><item><title>1. Créer et valider la VM</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/1-creer-vm/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/1-creer-vm/</guid><description>&lt;h1 id="créer-et-valider-la-vm-locale"&gt;Créer et valider la VM locale&lt;a class="anchor" href="#cr%c3%a9er-et-valider-la-vm-locale"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Le &lt;code&gt;Vagrantfile&lt;/code&gt; choisit une box adaptée au système :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Windows : &lt;code&gt;ubuntu/jammy64&lt;/code&gt;, version &lt;code&gt;20241002.0.0&lt;/code&gt; ;&lt;/li&gt;
&lt;li&gt;macOS : &lt;code&gt;bento/ubuntu-24.04&lt;/code&gt;, version &lt;code&gt;202510.26.0&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;La VM utilise 2 processeurs, 3 Go de mémoire et l&amp;rsquo;adresse privée &lt;code&gt;192.168.56.20&lt;/code&gt;. Vagrant redirige aussi SSH vers &lt;code&gt;127.0.0.1&lt;/code&gt; et un port local qu&amp;rsquo;il choisit.&lt;/p&gt;
&lt;h2 id="1-ouvrir-virtualbox-une-première-fois"&gt;1. Ouvrir VirtualBox une première fois&lt;a class="anchor" href="#1-ouvrir-virtualbox-une-premi%c3%a8re-fois"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Ouvrez VirtualBox, vérifiez que sa fenêtre s&amp;rsquo;affiche, puis fermez-la. Cette vérification détecte une installation ou un pilote incomplet.&lt;/p&gt;</description></item><item><title>1. Créer l'infrastructure AWS</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/1-creer-infrastructure/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/1-creer-infrastructure/</guid><description>&lt;h1 id="créer-linfrastructure-aws-avec-terraform"&gt;Créer l&amp;rsquo;infrastructure AWS avec Terraform&lt;a class="anchor" href="#cr%c3%a9er-linfrastructure-aws-avec-terraform"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="1-vérifier-le-réseau"&gt;1. Vérifier le réseau&lt;a class="anchor" href="#1-v%c3%a9rifier-le-r%c3%a9seau"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;À l&amp;rsquo;établissement, connectez l&amp;rsquo;ordinateur au partage Internet du téléphone. Déconnectez le câble Ethernet, le Wi-Fi de l&amp;rsquo;établissement et tout VPN.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Terminal : Ubuntu WSL sous Windows ou Terminal macOS&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;curl -4 https://checkip.amazonaws.com&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Conservez cette connexion jusqu&amp;rsquo;à la destruction AWS.&lt;/p&gt;
&lt;h2 id="2-activer-learner-lab"&gt;2. Activer Learner Lab&lt;a class="anchor" href="#2-activer-learner-lab"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Dans AWS Academy :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;ouvrez Learner Lab ;&lt;/li&gt;
&lt;li&gt;cliquez sur &lt;strong&gt;Start Lab&lt;/strong&gt; ;&lt;/li&gt;
&lt;li&gt;attendez l&amp;rsquo;indicateur vert ;&lt;/li&gt;
&lt;li&gt;ouvrez &lt;strong&gt;AWS Details&lt;/strong&gt; ;&lt;/li&gt;
&lt;li&gt;affichez &lt;strong&gt;AWS CLI&lt;/strong&gt; ;&lt;/li&gt;
&lt;li&gt;copiez le bloc complet qui commence par &lt;code&gt;[default]&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Le bloc doit contenir &lt;code&gt;aws_access_key_id&lt;/code&gt;, &lt;code&gt;aws_secret_access_key&lt;/code&gt; et &lt;code&gt;aws_session_token&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Infrastructure hybride</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/1-introduction/1-infrastructure-hybride/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/1-introduction/1-infrastructure-hybride/</guid><description>&lt;h1 id="infrastructure-hybride"&gt;Infrastructure hybride&lt;a class="anchor" href="#infrastructure-hybride"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Le TP utilise deux infrastructures successives :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;une machine virtuelle Ubuntu locale créée avec &lt;strong&gt;Vagrant et VirtualBox&lt;/strong&gt; ;&lt;/li&gt;
&lt;li&gt;une instance Ubuntu &lt;strong&gt;EC2&lt;/strong&gt; créée dans AWS avec &lt;strong&gt;Terraform&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Le poste étudiant, sous Ubuntu dans WSL, joue le rôle de &lt;strong&gt;nœud de contrôle Ansible&lt;/strong&gt;. La VM locale et l’EC2 sont des &lt;strong&gt;nœuds administrés&lt;/strong&gt; accessibles en SSH.&lt;/p&gt;
&lt;p&gt;Aucun cluster Kubernetes n’intervient dans ce parcours. La Voting App s’exécute avec Docker Compose sur chaque machine.&lt;/p&gt;</description></item><item><title>Slides introduction Ansible</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/1-slides-introduction-ansible/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/1-slides-introduction-ansible/</guid><description>&lt;h1 id="slides-introduction-ansible"&gt;Slides introduction Ansible&lt;a class="anchor" href="#slides-introduction-ansible"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Ce support présente les notions d’inventaire, de playbook, de tâche, de module et d’idempotence utilisées pendant le TP.&lt;/p&gt;
&lt;div class="slide-deck" aria-label="Introduction à Ansible"&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-01.webp"
 alt="Introduction à Ansible : diapositive 1"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 1 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-02.webp"
 alt="Introduction à Ansible : diapositive 2"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 2 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-03.webp"
 alt="Introduction à Ansible : diapositive 3"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 3 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-04.webp"
 alt="Introduction à Ansible : diapositive 4"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 4 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-05.webp"
 alt="Introduction à Ansible : diapositive 5"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 5 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-06.webp"
 alt="Introduction à Ansible : diapositive 6"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 6 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-07.webp"
 alt="Introduction à Ansible : diapositive 7"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 7 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-08.webp"
 alt="Introduction à Ansible : diapositive 8"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 8 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-09.webp"
 alt="Introduction à Ansible : diapositive 9"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 9 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-10.webp"
 alt="Introduction à Ansible : diapositive 10"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 10 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-11.webp"
 alt="Introduction à Ansible : diapositive 11"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 11 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-12.webp"
 alt="Introduction à Ansible : diapositive 12"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 12 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-13.webp"
 alt="Introduction à Ansible : diapositive 13"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 13 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-14.webp"
 alt="Introduction à Ansible : diapositive 14"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 14 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-15.webp"
 alt="Introduction à Ansible : diapositive 15"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 15 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-16.webp"
 alt="Introduction à Ansible : diapositive 16"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 16 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-17.webp"
 alt="Introduction à Ansible : diapositive 17"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 17 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-18.webp"
 alt="Introduction à Ansible : diapositive 18"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 18 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-19.webp"
 alt="Introduction à Ansible : diapositive 19"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 19 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-20.webp"
 alt="Introduction à Ansible : diapositive 20"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 20 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-21.webp"
 alt="Introduction à Ansible : diapositive 21"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 21 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-22.webp"
 alt="Introduction à Ansible : diapositive 22"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 22 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-23.webp"
 alt="Introduction à Ansible : diapositive 23"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 23 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-24.webp"
 alt="Introduction à Ansible : diapositive 24"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 24 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-25.webp"
 alt="Introduction à Ansible : diapositive 25"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 25 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-26.webp"
 alt="Introduction à Ansible : diapositive 26"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 26 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-27.webp"
 alt="Introduction à Ansible : diapositive 27"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 27 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-28.webp"
 alt="Introduction à Ansible : diapositive 28"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 28 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/1-intro-ansible/slide-29.webp"
 alt="Introduction à Ansible : diapositive 29"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 29 sur 29&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;/div&gt;</description></item><item><title>Windows 11 avec Ubuntu WSL</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/2-installation-environnements/1-windows-wsl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/2-installation-environnements/1-windows-wsl/</guid><description>&lt;h1 id="installation-sous-windows-11-avec-ubuntu-wsl"&gt;Installation sous Windows 11 avec Ubuntu WSL&lt;a class="anchor" href="#installation-sous-windows-11-avec-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Cette procédure utilise deux terminaux :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PowerShell Windows pour VirtualBox, Vagrant et Git ;&lt;/li&gt;
&lt;li&gt;Ubuntu WSL pour Python, Ansible, Terraform, AWS CLI et SSH.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chaque bloc indique le terminal à utiliser. Exécutez une commande, vérifiez son résultat, puis passez à la suivante.&lt;/p&gt;
&lt;h2 id="1-vérifier-la-virtualisation"&gt;1. Vérifier la virtualisation&lt;a class="anchor" href="#1-v%c3%a9rifier-la-virtualisation"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Ouvrez le Gestionnaire des tâches, puis &lt;strong&gt;Performances&lt;/strong&gt;. La ligne &lt;strong&gt;Virtualisation&lt;/strong&gt; doit indiquer &lt;code&gt;Activé&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Si elle est désactivée, activez Intel VT-x ou AMD-V dans l&amp;rsquo;UEFI avant de continuer.&lt;/p&gt;</description></item><item><title>2. Configurer l'EC2 avec Ansible</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/2-configurer-ansible/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/2-configurer-ansible/</guid><description>&lt;h1 id="configurer-lec2-avec-ansible"&gt;Configurer l&amp;rsquo;EC2 avec Ansible&lt;a class="anchor" href="#configurer-lec2-avec-ansible"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Toutes les commandes de cette page s&amp;rsquo;exécutent dans Ubuntu WSL sous Windows ou dans le Terminal macOS.&lt;/p&gt;
&lt;p&gt;Ouvrez le bon dossier avant la première commande.&lt;/p&gt;
&lt;h3 id="windows-ubuntu-wsl"&gt;Windows, Ubuntu WSL&lt;a class="anchor" href="#windows-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Copiez cette commande entière :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;find /mnt/c/Users -maxdepth &lt;span style="color:#ae81ff"&gt;6&lt;/span&gt; -type d -path &lt;span style="color:#e6db74"&gt;&amp;#39;*/Documents/tp-ansible-voting-app/ansible&amp;#39;&lt;/span&gt; -print -quit 2&amp;gt;/dev/null&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="macos-terminal"&gt;macOS, Terminal&lt;a class="anchor" href="#macos-terminal"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Documents/tp-ansible-voting-app/ansible&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="1-vérifier-ladresse-ip-autorisée"&gt;1. Vérifier l&amp;rsquo;adresse IP autorisée&lt;a class="anchor" href="#1-v%c3%a9rifier-ladresse-ip-autoris%c3%a9e"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Cette vérification est obligatoire après un changement de réseau.&lt;/p&gt;
&lt;p&gt;Affichez l&amp;rsquo;IP actuelle :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;curl -4 https://checkip.amazonaws.com&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Affichez le CIDR Terraform :&lt;/p&gt;</description></item><item><title>2. Configurer la VM avec Ansible</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/2-configurer-ansible/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/2-configurer-ansible/</guid><description>&lt;h1 id="configurer-la-vm-locale-avec-ansible"&gt;Configurer la VM locale avec Ansible&lt;a class="anchor" href="#configurer-la-vm-locale-avec-ansible"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Toutes les commandes de cette page s&amp;rsquo;exécutent dans Ubuntu WSL sous Windows ou dans le Terminal macOS, depuis le dossier &lt;code&gt;ansible&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Ouvrez le bon dossier avant la première commande.&lt;/p&gt;
&lt;h3 id="windows-ubuntu-wsl"&gt;Windows, Ubuntu WSL&lt;a class="anchor" href="#windows-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Copiez cette commande entière :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;find /mnt/c/Users -maxdepth &lt;span style="color:#ae81ff"&gt;6&lt;/span&gt; -type d -path &lt;span style="color:#e6db74"&gt;&amp;#39;*/Documents/tp-ansible-voting-app/ansible&amp;#39;&lt;/span&gt; -print -quit 2&amp;gt;/dev/null&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="macos-terminal"&gt;macOS, Terminal&lt;a class="anchor" href="#macos-terminal"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Documents/tp-ansible-voting-app/ansible&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="1-préparer-le-terminal"&gt;1. Préparer le terminal&lt;a class="anchor" href="#1-pr%c3%a9parer-le-terminal"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Activez l&amp;rsquo;environnement Python :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;source ~/.venvs/cloud-com-devops/bin/activate&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Chargez la configuration Ansible :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;export ANSIBLE_CONFIG&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$PWD&lt;span style="color:#e6db74"&gt;/ansible.cfg&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Vérifiez le fichier chargé :&lt;/p&gt;</description></item><item><title>macOS</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/2-installation-environnements/2-macos/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/2-installation-environnements/2-macos/</guid><description>&lt;h1 id="installation-sous-macos"&gt;Installation sous macOS&lt;a class="anchor" href="#installation-sous-macos"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Utilisez le Terminal macOS pour toutes les commandes. WSL ne concerne pas ce parcours.&lt;/p&gt;
&lt;h2 id="1-identifier-le-processeur"&gt;1. Identifier le processeur&lt;a class="anchor" href="#1-identifier-le-processeur"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;uname -m&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;arm64&lt;/code&gt; désigne un Mac Apple Silicon. &lt;code&gt;x86_64&lt;/code&gt; désigne un Mac Intel.&lt;/p&gt;
&lt;h2 id="2-installer-les-outils-apple-et-homebrew"&gt;2. Installer les outils Apple et Homebrew&lt;a class="anchor" href="#2-installer-les-outils-apple-et-homebrew"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;xcode-select --install&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Installez ensuite &lt;a href="https://brew.sh/"&gt;Homebrew&lt;/a&gt; avec la commande affichée sur son site officiel.&lt;/p&gt;
&lt;p&gt;Sur Apple Silicon, chargez Homebrew dans le terminal courant :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;eval &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;/opt/homebrew/bin/brew shellenv&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="3-installer-virtualbox-vagrant-git-et-python"&gt;3. Installer VirtualBox, Vagrant, Git et Python&lt;a class="anchor" href="#3-installer-virtualbox-vagrant-git-et-python"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Installez VirtualBox :&lt;/p&gt;</description></item><item><title>3. Déployer et tester la Voting App</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/3-deployer-application/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/3-deployer-application/</guid><description>&lt;h1 id="déployer-la-voting-app-sur-la-vm-locale"&gt;Déployer la Voting App sur la VM locale&lt;a class="anchor" href="#d%c3%a9ployer-la-voting-app-sur-la-vm-locale"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Après avoir ouvert le dossier, lisez l&amp;rsquo;explication du rôle. La première commande de déploiement se trouve sous le titre &lt;strong&gt;Lancer le déploiement&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Ouvrez le bon dossier avant la première commande.&lt;/p&gt;
&lt;h3 id="windows-ubuntu-wsl"&gt;Windows, Ubuntu WSL&lt;a class="anchor" href="#windows-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Copiez cette commande entière :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;find /mnt/c/Users -maxdepth &lt;span style="color:#ae81ff"&gt;6&lt;/span&gt; -type d -path &lt;span style="color:#e6db74"&gt;&amp;#39;*/Documents/tp-ansible-voting-app/ansible&amp;#39;&lt;/span&gt; -print -quit 2&amp;gt;/dev/null&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="macos-terminal"&gt;macOS, Terminal&lt;a class="anchor" href="#macos-terminal"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Documents/tp-ansible-voting-app/ansible&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Le rôle &lt;code&gt;voting_app&lt;/code&gt; clone l&amp;rsquo;application dans &lt;code&gt;/opt/example-voting-app&lt;/code&gt;, puis utilise Docker Compose pour construire et démarrer &lt;code&gt;vote&lt;/code&gt;, &lt;code&gt;result&lt;/code&gt;, &lt;code&gt;worker&lt;/code&gt;, &lt;code&gt;redis&lt;/code&gt; et &lt;code&gt;db&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>3. Déployer et tester la Voting App</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/3-deployer-application/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/3-deployer-application/</guid><description>&lt;h1 id="déployer-la-voting-app-sur-aws"&gt;Déployer la Voting App sur AWS&lt;a class="anchor" href="#d%c3%a9ployer-la-voting-app-sur-aws"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Ouvrez le bon dossier avant la première commande.&lt;/p&gt;
&lt;h3 id="windows-ubuntu-wsl"&gt;Windows, Ubuntu WSL&lt;a class="anchor" href="#windows-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Copiez cette commande entière :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;find /mnt/c/Users -maxdepth &lt;span style="color:#ae81ff"&gt;6&lt;/span&gt; -type d -path &lt;span style="color:#e6db74"&gt;&amp;#39;*/Documents/tp-ansible-voting-app/ansible&amp;#39;&lt;/span&gt; -print -quit 2&amp;gt;/dev/null&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="macos-terminal"&gt;macOS, Terminal&lt;a class="anchor" href="#macos-terminal"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Documents/tp-ansible-voting-app/ansible&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="1-vérifier-la-connexion"&gt;1. Vérifier la connexion&lt;a class="anchor" href="#1-v%c3%a9rifier-la-connexion"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ansible all -i inventories/aws.yml -m ansible.builtin.ping&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Ne continuez que si la sortie contient &lt;code&gt;SUCCESS&lt;/code&gt; et &lt;code&gt;pong&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="2-déployer-lapplication"&gt;2. Déployer l&amp;rsquo;application&lt;a class="anchor" href="#2-d%c3%a9ployer-lapplication"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ansible-playbook -i inventories/aws.yml site.yml --tags voting_app&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Le premier build peut durer plusieurs minutes. Le &lt;code&gt;PLAY RECAP&lt;/code&gt; doit afficher &lt;code&gt;unreachable=0&lt;/code&gt; et &lt;code&gt;failed=0&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Configurer Ansible après l'installation</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/3-premiers-pas-ansible/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/3-premiers-pas-ansible/</guid><description>&lt;h1 id="configurer-ansible-après-linstallation"&gt;Configurer Ansible après l&amp;rsquo;installation&lt;a class="anchor" href="#configurer-ansible-apr%c3%a8s-linstallation"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Cette page explique l&amp;rsquo;ordre des contrôles. Les commandes complètes se trouvent dans les parties locale et AWS du projet.&lt;/p&gt;
&lt;h2 id="les-quatre-éléments-à-distinguer"&gt;Les quatre éléments à distinguer&lt;a class="anchor" href="#les-quatre-%c3%a9l%c3%a9ments-%c3%a0-distinguer"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ansible.cfg&lt;/code&gt; contient la configuration commune du projet.&lt;/li&gt;
&lt;li&gt;Un inventaire indique la machine cible, l&amp;rsquo;utilisateur SSH et la clé.&lt;/li&gt;
&lt;li&gt;Un playbook décrit les tâches à appliquer.&lt;/li&gt;
&lt;li&gt;Un rôle regroupe les tâches réutilisables.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Le TP utilise deux inventaires avec le même playbook :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;inventories/local.yml&lt;/code&gt; pour la VM Vagrant ;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;inventories/aws.yml&lt;/code&gt; pour l&amp;rsquo;EC2.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="ordre-obligatoire-des-contrôles"&gt;Ordre obligatoire des contrôles&lt;a class="anchor" href="#ordre-obligatoire-des-contr%c3%b4les"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Pour chaque machine, respectez cet ordre :&lt;/p&gt;</description></item><item><title>4. Idempotence et destruction</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/4-idempotence-destruction/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/2-aws-terraform/4-idempotence-destruction/</guid><description>&lt;h1 id="vérifier-lidempotence-aws-et-détruire-les-ressources"&gt;Vérifier l&amp;rsquo;idempotence AWS et détruire les ressources&lt;a class="anchor" href="#v%c3%a9rifier-lidempotence-aws-et-d%c3%a9truire-les-ressources"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="1-mesurer-lidempotence"&gt;1. Mesurer l&amp;rsquo;idempotence&lt;a class="anchor" href="#1-mesurer-lidempotence"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Ouvrez le bon dossier avant la première commande.&lt;/p&gt;
&lt;h3 id="windows-ubuntu-wsl"&gt;Windows, Ubuntu WSL&lt;a class="anchor" href="#windows-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Copiez cette commande entière :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;find /mnt/c/Users -maxdepth &lt;span style="color:#ae81ff"&gt;6&lt;/span&gt; -type d -path &lt;span style="color:#e6db74"&gt;&amp;#39;*/Documents/tp-ansible-voting-app/ansible&amp;#39;&lt;/span&gt; -print -quit 2&amp;gt;/dev/null&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="macos-terminal"&gt;macOS, Terminal&lt;a class="anchor" href="#macos-terminal"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Documents/tp-ansible-voting-app/ansible&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Exécutez le playbook complet une première fois :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ansible-playbook -i inventories/aws.yml site.yml&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Exécutez-le une deuxième fois sans modifier les fichiers :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ansible-playbook -i inventories/aws.yml site.yml&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Le deuxième &lt;code&gt;PLAY RECAP&lt;/code&gt; doit afficher &lt;code&gt;changed=0&lt;/code&gt;, &lt;code&gt;unreachable=0&lt;/code&gt; et &lt;code&gt;failed=0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Conservez les deux récapitulatifs dans &lt;code&gt;COMPTE_RENDU.md&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>4. Idempotence et nettoyage</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/4-idempotence-nettoyage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/1-local-vagrant/4-idempotence-nettoyage/</guid><description>&lt;h1 id="vérifier-lidempotence-locale-et-nettoyer"&gt;Vérifier l&amp;rsquo;idempotence locale et nettoyer&lt;a class="anchor" href="#v%c3%a9rifier-lidempotence-locale-et-nettoyer"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Ouvrez le bon dossier avant la première commande.&lt;/p&gt;
&lt;h3 id="windows-ubuntu-wsl"&gt;Windows, Ubuntu WSL&lt;a class="anchor" href="#windows-ubuntu-wsl"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Copiez cette commande entière :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;find /mnt/c/Users -maxdepth &lt;span style="color:#ae81ff"&gt;6&lt;/span&gt; -type d -path &lt;span style="color:#e6db74"&gt;&amp;#39;*/Documents/tp-ansible-voting-app/ansible&amp;#39;&lt;/span&gt; -print -quit 2&amp;gt;/dev/null&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="macos-terminal"&gt;macOS, Terminal&lt;a class="anchor" href="#macos-terminal"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Documents/tp-ansible-voting-app/ansible&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Exécutez le playbook complet une première fois :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ansible-playbook -i inventories/local.yml site.yml&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Exécutez-le une deuxième fois sans modifier les fichiers :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ansible-playbook -i inventories/local.yml site.yml&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Le deuxième &lt;code&gt;PLAY RECAP&lt;/code&gt; doit afficher &lt;code&gt;changed=0&lt;/code&gt;, &lt;code&gt;unreachable=0&lt;/code&gt; et &lt;code&gt;failed=0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Dans &lt;code&gt;COMPTE_RENDU.md&lt;/code&gt;, conservez les deux récapitulatifs et expliquez pourquoi le deuxième passage ne modifie plus la VM.&lt;/p&gt;</description></item><item><title>Slides rôles Ansible</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/4-slides-roles-ansible/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/4-slides-roles-ansible/</guid><description>&lt;h1 id="slides-rôles-ansible"&gt;Slides rôles Ansible&lt;a class="anchor" href="#slides-r%c3%b4les-ansible"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Ce support explique comment organiser des tâches réutilisables avec les rôles, les variables et les handlers.&lt;/p&gt;
&lt;div class="slide-deck" aria-label="Rôles Ansible"&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-01.webp"
 alt="Rôles Ansible : diapositive 1"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 1 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-02.webp"
 alt="Rôles Ansible : diapositive 2"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 2 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-03.webp"
 alt="Rôles Ansible : diapositive 3"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 3 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-04.webp"
 alt="Rôles Ansible : diapositive 4"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 4 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-05.webp"
 alt="Rôles Ansible : diapositive 5"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 5 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-06.webp"
 alt="Rôles Ansible : diapositive 6"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 6 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-07.webp"
 alt="Rôles Ansible : diapositive 7"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 7 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-08.webp"
 alt="Rôles Ansible : diapositive 8"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 8 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-09.webp"
 alt="Rôles Ansible : diapositive 9"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 9 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-10.webp"
 alt="Rôles Ansible : diapositive 10"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 10 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-11.webp"
 alt="Rôles Ansible : diapositive 11"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 11 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-12.webp"
 alt="Rôles Ansible : diapositive 12"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 12 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/2-reusable-ansible/slide-13.webp"
 alt="Rôles Ansible : diapositive 13"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 13 sur 13&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;/div&gt;</description></item><item><title>Aide et dépannage</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/5-troubleshooting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/5-troubleshooting/</guid><description>&lt;h1 id="aide-et-dépannage"&gt;Aide et dépannage&lt;a class="anchor" href="#aide-et-d%c3%a9pannage"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Diagnostiquez toujours dans cet ordre : &lt;strong&gt;machine → réseau/SSH → inventaire Ansible → Docker → application&lt;/strong&gt;. Ne modifiez pas le playbook tant que le ping Ansible ne fonctionne pas.&lt;/p&gt;
&lt;p&gt;Chaque bloc indique le terminal à utiliser.&lt;/p&gt;
&lt;h1 id="vagrant-et-virtualbox"&gt;Vagrant et VirtualBox&lt;a class="anchor" href="#vagrant-et-virtualbox"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="vagrant-up-échoue"&gt;&lt;code&gt;vagrant up&lt;/code&gt; échoue&lt;a class="anchor" href="#vagrant-up-%c3%a9choue"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Terminal : PowerShell Windows ou Terminal macOS, dossier &lt;code&gt;infra/local&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Validez le fichier :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vagrant validate&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Vérifiez l&amp;rsquo;état :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vagrant status&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Affichez les environnements connus :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vagrant global-status&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Affichez la configuration SSH :&lt;/p&gt;</description></item><item><title>Slides facts Ansible</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/5-slides-facts-ansible/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/2-prise-en-main/5-slides-facts-ansible/</guid><description>&lt;h1 id="slides-facts-ansible"&gt;Slides facts Ansible&lt;a class="anchor" href="#slides-facts-ansible"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Ce support présente les facts, les conditions et les templates Jinja utilisés pour adapter une configuration à la machine cible.&lt;/p&gt;
&lt;div class="slide-deck" aria-label="Facts et templates Ansible"&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-01.webp"
 alt="Facts et templates Ansible : diapositive 1"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 1 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-02.webp"
 alt="Facts et templates Ansible : diapositive 2"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 2 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-03.webp"
 alt="Facts et templates Ansible : diapositive 3"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 3 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-04.webp"
 alt="Facts et templates Ansible : diapositive 4"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 4 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-05.webp"
 alt="Facts et templates Ansible : diapositive 5"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 5 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-06.webp"
 alt="Facts et templates Ansible : diapositive 6"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 6 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;figure class="slide-deck__slide"&gt;
 &lt;img src="https://cours-ansible-vagrant-ed3ca6.gitlab.io/slides-view/3-facts-templates/slide-07.webp"
 alt="Facts et templates Ansible : diapositive 7"
 loading="lazy"
 decoding="async"
 draggable="false"&gt;
 &lt;figcaption&gt;Diapositive 7 sur 7&lt;/figcaption&gt;
 &lt;/figure&gt;&lt;/div&gt;</description></item><item><title>Évaluation</title><link>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/6-evaluation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cours-ansible-vagrant-ed3ca6.gitlab.io/docs/3-projet/6-evaluation/</guid><description>&lt;h1 id="évaluation"&gt;Évaluation&lt;a class="anchor" href="#%c3%a9valuation"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Le TP se fait &lt;strong&gt;individuellement&lt;/strong&gt;. Chaque étudiant travaille dans son propre fork du dépôt.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gitlab.com/cloud_com-devops/tp-ansible-voting-app"&gt;https://gitlab.com/cloud_com-devops/tp-ansible-voting-app&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="travail-demandé"&gt;Travail demandé&lt;a class="anchor" href="#travail-demand%c3%a9"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Vous devez démontrer une chaîne reproductible complète :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;créer l’infrastructure AWS avec Terraform ;&lt;/li&gt;
&lt;li&gt;expliquer l’inventaire Ansible généré ;&lt;/li&gt;
&lt;li&gt;configurer l’EC2 avec le playbook Ansible ;&lt;/li&gt;
&lt;li&gt;déployer la Voting App ;&lt;/li&gt;
&lt;li&gt;vérifier les interfaces de vote et de résultats ;&lt;/li&gt;
&lt;li&gt;exécuter une seconde fois le playbook et analyser l’idempotence ;&lt;/li&gt;
&lt;li&gt;versionner le compte rendu sans secret ;&lt;/li&gt;
&lt;li&gt;détruire les ressources AWS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="preuves-à-placer-dans-compte_rendumd"&gt;Preuves à placer dans &lt;code&gt;COMPTE_RENDU.md&lt;/code&gt;&lt;a class="anchor" href="#preuves-%c3%a0-placer-dans-compte_rendumd"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;noms et prénom ;&lt;/li&gt;
&lt;li&gt;versions de Vagrant, Terraform et Ansible ;&lt;/li&gt;
&lt;li&gt;schéma de la chaîne Vagrant/Terraform → Ansible → Docker Compose ;&lt;/li&gt;
&lt;li&gt;sortie &lt;code&gt;PLAY RECAP&lt;/code&gt; des deux exécutions sur la VM locale ;&lt;/li&gt;
&lt;li&gt;sortie &lt;code&gt;PLAY RECAP&lt;/code&gt; des deux exécutions sur AWS ;&lt;/li&gt;
&lt;li&gt;URL et preuve des interfaces sur les ports 8080 et 8081 ;&lt;/li&gt;
&lt;li&gt;résultat d’un vote de bout en bout ;&lt;/li&gt;
&lt;li&gt;explication de chaque éventuel &lt;code&gt;changed&lt;/code&gt; au deuxième passage ;&lt;/li&gt;
&lt;li&gt;incident rencontré et méthode de diagnostic ;&lt;/li&gt;
&lt;li&gt;preuve de &lt;code&gt;terraform destroy&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="questions-de-compréhension"&gt;Questions de compréhension&lt;a class="anchor" href="#questions-de-compr%c3%a9hension"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Quelle différence faites-vous entre Terraform et Ansible ?&lt;/li&gt;
&lt;li&gt;Pourquoi le même playbook fonctionne-t-il avec deux inventaires ?&lt;/li&gt;
&lt;li&gt;Pourquoi &lt;code&gt;become: true&lt;/code&gt; est-il nécessaire ?&lt;/li&gt;
&lt;li&gt;Que signifie &lt;code&gt;changed=0&lt;/code&gt; lors du second passage ?&lt;/li&gt;
&lt;li&gt;Pourquoi la clé privée et l’état Terraform ne doivent-ils pas être versionnés ?&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="barème"&gt;Barème&lt;a class="anchor" href="#bar%c3%a8me"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Critère&lt;/th&gt;
 &lt;th style="text-align: right"&gt;Points&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;EC2 et règles réseau créées avec Terraform&lt;/td&gt;
 &lt;td style="text-align: right"&gt;3&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;inventaire AWS correct et expliqué&lt;/td&gt;
 &lt;td style="text-align: right"&gt;2&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;rôle Docker réutilisable&lt;/td&gt;
 &lt;td style="text-align: right"&gt;3&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Voting App fonctionnelle sur 8080 et 8081&lt;/td&gt;
 &lt;td style="text-align: right"&gt;4&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;seconde exécution et idempotence analysées&lt;/td&gt;
 &lt;td style="text-align: right"&gt;3&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;compte rendu reproductible&lt;/td&gt;
 &lt;td style="text-align: right"&gt;2&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;absence de secrets et d’état Terraform dans Git&lt;/td&gt;
 &lt;td style="text-align: right"&gt;2&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;destruction AWS vérifiée&lt;/td&gt;
 &lt;td style="text-align: right"&gt;1&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: right"&gt;&lt;strong&gt;20&lt;/strong&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Le TP se termine par la vérification du nettoyage AWS.&lt;/p&gt;</description></item></channel></rss>