Frederic Lepied | ae55c18 | 2017-04-14 08:31:34 +0200 | [diff] [blame^] | 1 | #!/usr/bin/env ansible-playbook |
2 | --- | ||||
3 | - hosts: localhost | ||||
4 | remote_user: root | ||||
5 | |||||
6 | tasks: | ||||
7 | - name: Install the requirements | ||||
8 | package: | ||||
9 | name: "{{item}}" | ||||
10 | state: latest | ||||
11 | with_items: | ||||
12 | - systemd | ||||
13 | |||||
14 | - name: Execute the tests | ||||
15 | shell: systemctl 2>&1 | tee output |