additional course material RH294
Olaf Bohlen
2020-08-20 1de6236f80a879ca110981fe0e5c0c05c521225b
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: