I have a playbook which is supposed to create LVM volumes in an EC2 instance. The EC2 instance is of instance class m5ad.8xlarge so there are two instance store of 600GB that come with the EC2 instance.

I am getting the output of the lsblk to narrow the output to the instance store devices like below:-

```
    shell: "lsblk | grep -v nvme0 | grep -v NAME | awk '{print $1}'"
    register: lvm_out

```

The above gives:-

```
{
    "lvm_out.stdout_lines": [
        "nvme1n1",
        "nvme2n1"
    ]
}

```

Now I need to run pvcreate on the two devices together like below:-

```
pvcreate /dev/nvme1n1 /dev/nvme2n1

```

I am wondering if "set\_fact" can be used but not getting any idea on how to use it here.

Could you guys help here.