Execution
Date 11 Sep 2024 11:19:01 +0100
Duration 00:00:00.86
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
1 Hosts
3 Tasks
3 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/test.yaml

---
- name: Merge lists
  hosts: localhost
  tasks:
    - name: Lists
      set_fact:
        list_one:
          - 1
          - 2
          - 3
        list_two:
          - 4
          - 5
          - 6
    - name: Merge the two lists
      set_fact:
        lists_merged: "{{ list_one + list_two }}"
    - name: Demonstrate merged lists
      debug: var=lists_merged