From 1de6236f80a879ca110981fe0e5c0c05c521225b Mon Sep 17 00:00:00 2001 From: Olaf Bohlen <olaf.bohlen@niit.com> Date: Thu, 20 Aug 2020 10:06:45 +0200 Subject: [PATCH] new stuff during t3 --- simple-play.yml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/simple-play.yml b/simple-play.yml index 3e8837a..04ee29d 100644 --- a/simple-play.yml +++ b/simple-play.yml @@ -1,7 +1,7 @@ --- - name: Simple play for class DO407 - hosts: server become: yes + hosts: localhost gather_facts: false tasks: - name: ping host @@ -10,10 +10,10 @@ copy: dest: /etc/motd content: "Welcome to our server!\n\n" - - name: ensure postfix is installed - package: + - package: name: postfix state: installed + name: ensure postfix is installed - name: ensure that postfix is stopped service: name: postfix @@ -23,7 +23,7 @@ - debug: msg: "{{ ansible_facts['fqdn'] }}" - name: Next play - hosts: servera + hosts: localhost tasks: - name: adjust /etc/motd copy: -- Gitblit v1.9.3