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