[ansible-project] Unable to create the partition using [parted] module

2023-09-05 Thread Irosh IFS
Hi , Terraform create linux vm using custom image which has an attached the managed data disk and that data disk is already portioned. In papally terraform added the second and third data disk into vm . Now i tried to run ansible playbook to partitioned the second and third data disk (lun

Re: [ansible-project] Unable to create the partition

2022-07-11 Thread Ashok Reddy
Thanks for providing your input. On Mon, Jul 11, 2022 at 12:37 PM David Logan wrote: > On the systems that I build, the /boot partition is simply an ext4 or xfs > file system. I would not be trying to use logical volume manager to try to > build /boot. > > I would also look at using a

Re: [ansible-project] Unable to create the partition

2022-07-11 Thread David Logan
On the systems that I build, the /boot partition is simply an ext4 or xfs file system. I would not be trying to use logical volume manager to try to build /boot. I would also look at using a kick-start method or similar to automate the build and get the file systems built there rather than

Re: [ansible-project] Unable to create the partition

2022-07-11 Thread Ashok Reddy
Can you please suggest me how to fix this issue? On Monday, July 11, 2022 at 11:45:25 AM UTC+5:30 skra...@gmail.com wrote: > You appear to be trying to do something to the /boot partition. > > Perhaps you are referring to the wrong device? > > > > When in trouble, or in doubt > Run in circles,

Re: [ansible-project] Unable to create the partition

2022-07-11 Thread David Logan
You appear to be trying to do something to the /boot partition. Perhaps you are referring to the wrong device? ⁣When in trouble, or in doubt Run in circles, scream and shout​ On 11 July 2022, 3:40 pm, at 3:40 pm, Ashok Reddy wrote: > > >lsblk > >NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT >

Re: [ansible-project] Unable to create the partition

2022-07-11 Thread Ashok Reddy
lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda252:00 50G 0 disk ├─vda1 252:10 500M 0 part /boot ├─vda2 252:204G 0 part [SWAP] └─vda3 252:30 10.5G 0 part / --- - hosts: default become: true become_method: sudo tasks: - name: part1

Re: [ansible-project] Unable to create the partition

2022-07-10 Thread Ashok Reddy
Thanks for providing your input. On Friday, July 8, 2022 at 5:18:41 PM UTC+5:30 dnmv...@gmail.com wrote: > > > On 2022-07-08 (Fri) 11:50, Ashok Reddy wrote: > > I am trying to create new partition. > > If that is not available, so that only need to create the /dev/vdb > > partition. > > Your

Re: [ansible-project] Unable to create the partition

2022-07-08 Thread Dick Visser
On 2022-07-08 (Fri) 11:50, Ashok Reddy wrote: I am trying to create new partition. If that is not available, so that only need to create the /dev/vdb partition. Your logic is flawed. You cannot create devices. You can only create partitions on existing devices. -- You received this

Re: [ansible-project] Unable to create the partition

2022-07-08 Thread Ashok Reddy
I am trying to create new partition. If that is not available, so that only need to create the /dev/vdb partition. On Friday, July 8, 2022 at 2:06:16 PM UTC+5:30 ra...@linuxia.de wrote: > On 08/07/2022 10:04, Ashok Reddy wrote: > > Hi, > > > > I am trying to create the partition, but got the

Re: [ansible-project] Unable to create the partition

2022-07-08 Thread Stefan Hornburg (Racke)
On 08/07/2022 10:04, Ashok Reddy wrote: Hi, I am trying to create the partition, but got the following error: I think that the error message is clear about the problem. The device doesn't exist. Regards Racke --- - hosts: default   become: true   become_method: sudo  

[ansible-project] Unable to create the partition

2022-07-08 Thread Ashok Reddy
Hi, I am trying to create the partition, but got the following error: --- - hosts: default become: true become_method: sudo tasks: - name: part1 parted: device: "/dev/vdb" number: 1 state: present - name: filesystem filesystem: