Skip to content

Commit

Permalink
fix slides
Browse files Browse the repository at this point in the history
  • Loading branch information
ombre8 committed Dec 6, 2024
1 parent 0a61175 commit 8936548
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions slides/ansible-techlab/puzzle-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

### ansible.puzzle.ch

<!-- #### Lukas Grimm -->
#### Lukas Grimm

<!-- #### Dominik Meisser -->

#### Lukas Preisig
<!-- #### Lukas Preisig -->

<!-- #### Philippe Schmid -->

Expand All @@ -16,7 +16,7 @@

<!-- #### Mark Pröhl -->

#### Florian Studer
<!-- #### Florian Studer -->

<!-- .slide: class="master-cover" -->

Expand All @@ -27,7 +27,7 @@
<!--
<div class="people" style="color: black;">
<div>
<div class="img" style="background-image: url(https://www.puzzle.ch/wp-content/uploads/2019/06/Schmid_Philippe-3-400x300.jpg)" />
<div class="img" style="background-image: url(https://www.puzzle.ch/img/2024/06/Schmid_Philippe.jpg?w=900&h=900&fit=crop&fm=webp&q=90&sharp=4&s=f27e83a00061d8aa6266f3092b1b289c)" />
</div>
### Philippe Schmid
Expand All @@ -38,18 +38,12 @@
-->

<!--
<div class="people" style="color: black;">
<div>
<div class="img" style="background-image: url(https://www.puzzle.ch/wp-content/uploads/2020/08/Lukas_Grimm_wp-400x300.jpg)" />
</div>
![](https://www.puzzle.ch/img/2024/06/Grimm_Lukas.jpg?w=300&h=300&fit=crop&fm=webp&q=90&sharp=4&s=d42398d9832aa48066cb50daa8a895d6)

### Lukas Grimm
System Engineer
Lead System Architect

[email protected]
</div>
-->

<!--
<div class="people">
Expand All @@ -64,7 +58,7 @@
</div>
-->

<!--
<div class="people" style="color: black;">
<div>
<div class="img" style="background-image: url(https://www.puzzle.ch/wp-content/uploads/2019/05/Preisig_Lukas-400x300.jpg)" />
Expand All @@ -75,7 +69,7 @@
[email protected]
</div>

-->
<!--
<div>
<div class="img" style="background-image: url(https://www.puzzle.ch/wp-content/uploads/2018/08/Test-Remy-Keil-Filter_2Option-400x300.jpg)" />
Expand Down Expand Up @@ -126,7 +120,7 @@ [email protected]
</div>
-->

<!--
<div>
<div class="img" style="background-image: url(https://www.puzzle.ch/wp-content/uploads/2021/06/Florian_Studer_wp-400x300.jpg)" />
</div>
Expand All @@ -138,22 +132,17 @@ [email protected]
</div>

-->
<!-- .slide: class="master-top-head" -->

***
## Alle Puzzler

<div class="people" style="color: black;">
<div>
<div class="img" style="background-image: url(https://www.puzzle.ch/wp-content/uploads/2021/06/2006-1024.png)" />
</div>
![](https://www.puzzle.ch/img/2024/06/2024_Gruppenfoto_Puzzle-16x9-1000px-Breit.jpg?w=1000&h=561&fit=crop&fm=webp&q=90&sharp=4&s=5ec79746d78173920f663ca911d9ce86)"

### Members
https://www.puzzle.ch/de/team

</div>

<!-- .slide: class="master-top-head" -->

***
Expand Down Expand Up @@ -783,13 +772,15 @@ Ein Play ist was, wo wie, gmacht wird
"Baby-JSON" possible

same as before:

```yaml
---
- hosts: web
tasks:
- name: install httpd
yum: name=httpd state=installed
```

Not Best Practice!
<!-- .slide: class="master-content" > -->

Expand Down Expand Up @@ -848,6 +839,7 @@ Why? Where to define variables?
***
## Where to put variables
defined in playbook:

```yaml
---
- hosts: web
Expand All @@ -860,12 +852,14 @@ defined in playbook:
name: "{{ my_package }}"
state: installed
```

<!-- .slide: class="master-content" > -->

***
## Where to put variables

`ansible-playbook myplay.yml --extra-vars my_package="nginx"`

<!-- .slide: class="master-content" > -->

Note:
Expand Down Expand Up @@ -933,6 +927,7 @@ https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#unde
Don't Name your Variables after Magic Variables

***

## Bonus Level: Loops!
```yaml
- name: start and enable two services
Expand All @@ -951,11 +946,15 @@ Note:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#migrating-to-loop
<!-- .slide: class="master-content" > -->
***
# Lab 4.1: Ansible Playbooks - Variables and Loops
<!-- .slide: class="master-title" > -->
***
## Templates
- "template" is a module
Expand Down

0 comments on commit 8936548

Please sign in to comment.