Skip to content

Commit 3090390

Browse files
committed
remove loop for host ini group and use instance type
1 parent e56e860 commit 3090390

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

olam/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,17 @@
129129
- name: Create host ini file
130130
ansible.builtin.lineinfile:
131131
path: hosts
132-
regexp: '^\[{{ host_group }}'
133-
line: "[{{ host_group }}]"
132+
regexp: '^\[{{ item.value.type }}'
133+
line: "[{{ item.value.type }}]"
134134
create: true
135135
mode: "0664"
136136
delegate_to: localhost
137-
loop:
138-
- control
139-
- execution
140-
- db
141-
loop_control:
142-
loop_var: host_group
137+
# loop:
138+
# - control
139+
# - execution
140+
# - db
141+
# loop_control:
142+
# loop_var: host_group
143143

144144
- name: Add host to ini host file
145145
ansible.builtin.lineinfile:

0 commit comments

Comments
 (0)