-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathplaybook.yaml
48 lines (43 loc) · 1012 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
36
37
38
39
40
41
42
43
44
45
46
47
48
- hosts: stapp01
gather_facts: false
become: true
tasks:
- name: Create empty file
file:
dest: /opt/security/blog.txt
state: touch
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
- name: Create symbolic link
file:
src: /opt/security
dest: /var/www/html
state: link
- hosts: stapp02
gather_facts: false
become: true
tasks:
- file:
dest: /opt/security/story.txt
state: touch
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
- name: Create symbolic link
file:
src: /opt/security
dest: /var/www/html
state: link
- hosts: stapp03
gather_facts: false
become: true
tasks:
- file:
dest: /opt/security/media.txt
state: touch
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
- name: Create symbolic link
file:
src: /opt/security
dest: /var/www/html
state: link