--- theme: uncover --- # Voici l'histoire de Petit Poisson --- --- --- [https://tryrust.org](https://tryrust.org) --- --- --- --- --- ## Demo time --- --- --- ## Ansible❓ --- ```yaml - name: Download wikipedia hosts: localhost tasks: - name: Download a file ansible.builtin.get_url: url: "https:/wikipedia.org/" dest: "/tmp/ansible-test/wikipedia.html" mode: '0900' ``` --- ``` ansible-lint download.yml Passed: 0 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'production'. ``` --- ``` git push ``` --- --- --- --- --- --- --- ## Terraform❓❗ --- ```tf provider "docker" {} resource "docker_network" "invalid_network" { name = "my-invalid-network" ipam_config { subnet = "172.17.0.0/33" } } ``` --- ``` terraform plan Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # docker_network.invalid_network will be created + resource "docker_network" "invalid_network" { + driver = (known after apply) + id = (known after apply) + internal = (known after apply) + ipam_driver = "default" + name = "my-invalid-network" + options = (known after apply) + scope = (known after apply) + ipam_config { + subnet = "172.17.0.0/33" # (2 unchanged attributes hidden) } } Plan: 1 to add, 0 to change, 0 to destroy. ``` --- ✅ --- ``` terraform apply ``` --- ``` Plan: 1 to add, 0 to change, 0 to destroy. Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes ``` --- ``` docker_network.invalid_network: Creating... ╷ │ Error: Unable to create network: Error response from daemon: invalid network config: │ invalid subnet 172.17.0.0/33: invalid CIDR block notation │ │ with docker_network.invalid_network, │ on main.tf line 11, in resource "docker_network" "invalid_network": │ 11: resource "docker_network" "invalid_network" { │ ╵ ``` --- --- --- ## Harmony❓❗ --- Demo time ---