-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaybook.yaml
48 lines (41 loc) · 1.15 KB
/
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
---
- name: Process List of Patches
hosts: server
become: true
become_user: root
roles:
- common
- demo-ansible-role
vars:
patch_list: []
config:
a: [0,4,8]
b:
c: "c"
d:
- e : a b c d e
- e : a b c d e 2
- e : a b c d e 3
tasks:
- name: Print
ansible.builtin.debug:
msg: GLOBAL_VAR {{ GLOBAL_VAR }}
- name: Print
ansible.builtin.debug:
msg: host var {{ host_var }} user {{ POSTGRES_USERNAME }} password {{ POSTGRES_PASSWORD }}
- name: Template a file to file.conf
ansible.builtin.template:
src: test.j2
dest: /workspaces/maven-demo-project/file.conf
- name: Template a file to file.conf
ansible.builtin.template:
src: test2.j2
dest: /workspaces/maven-demo-project/file2.conf
- name: Tear down existing services
community.docker.docker_compose:
project_src: /workspaces/maven-demo-project
state: absent
- name: Tear up existing services
community.docker.docker_compose:
project_src: /workspaces/maven-demo-project
state: present