-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yaml
35 lines (35 loc) · 887 Bytes
/
playbook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- name: Install telnet
resource: package
action: install
package_name: telnet
- name: Create /tmp/blah
resource: file
action: create
remote_file: /tmp/blah
- name: Delete /tmp/blah
resource: file
action: delete
remote_file: /tmp/blah
- name: Copy /etc/lsb-release
resource: file
action: upload
local_file: /etc/lsb-release
remote_file: /tmp/lsb-release
- name: Start ssh service
resource: service
action: start
service_name: ssh
- name: Update package manager
resource: update
- name: Create /tmp/test directory
resource: directory
action: create
remote_directory: /tmp/test
- name: Delete /tmp/test directory
resource: directory
action: delete
remote_directory: /tmp/test
- name: Execute remote 'Hello World!'
resource: command
remote_command: echo "Hello World!"