Switch more modern syntax with loop
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "Install | Create directories {{ item }}"
|
- name: "Install | Create directories {{ item }}"
|
||||||
with_items:
|
loop:
|
||||||
- "{{ alertmanager_config_dir }}"
|
- "{{ alertmanager_config_dir }}"
|
||||||
- "{{ alertmanager_storage_dir }}"
|
- "{{ alertmanager_storage_dir }}"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
||||||
- name: "Install | Put the binaries under the PATH"
|
- name: "Install | Put the binaries under the PATH"
|
||||||
with_items:
|
loop:
|
||||||
- alertmanager
|
- alertmanager
|
||||||
- amtool
|
- amtool
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|||||||
Reference in New Issue
Block a user