additional course material RH294
Student User
2020-02-20 67b9520a2490b9894fea1a76b98e4f5c2226b62f
commit | author | age
8b8624 1 ---
SU 2 - name: demo blockinfile
3   hosts: server
4   become: true
5   vars:
6     installstate: present
7   tasks:
8     - name: "copy some lines into /etc/profile"
9       blockinfile:
10         path: /etc/profile
11         block: |
12           #This is a
13           #phantastic
14           #block using
15           #ansible
16           #blockinfile
17         marker: "# {mark} OLAFS SUPER BLOCK"
18         state: '{{ installstate }}'
19         insertbefore: "^unset i$"