From f4fb1f178ae8ecc5d633381a59c0adf888f56b40 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Tue, 12 May 2026 16:12:40 +0200 Subject: [PATCH] Petit canvi a hosts de 002_example --- examples/002_become/hosts | 6 +++--- training/multi-play.yml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 training/multi-play.yml diff --git a/examples/002_become/hosts b/examples/002_become/hosts index c4a9663..0432cdd 100644 --- a/examples/002_become/hosts +++ b/examples/002_become/hosts @@ -1,8 +1,8 @@ [database] -192.168.0.2 +192.168.11.20 [loadbalancer] -192.168.0.3 +192.168.11.30 [webserver] -192.168.0.4 \ No newline at end of file +192.168.11.40 \ No newline at end of file diff --git a/training/multi-play.yml b/training/multi-play.yml new file mode 100644 index 0000000..334cb66 --- /dev/null +++ b/training/multi-play.yml @@ -0,0 +1,17 @@ +- name: Configurar base de dades # Play 1 + hosts: database + become: yes + tasks: + - name: Instal·lar PostgreSQL + apt: + name: postgresql + state: present + +- name: Configurar servidor web # Play 2 + hosts: webserver + become: yes + tasks: + - name: Instal·lar Nginx + apt: + name: nginx + state: present \ No newline at end of file