Score:0

How do I remount /home as the ec2-user in Ansible?

in flag

I can manually remount /home as the ec2-user by executing these three lines:

$ cd /
$ exec sudo -i
# mount -a

How do I do this in Ansible without rebooting?

Edit: /home is on a separate volume. No other users are on the box. The cd / removes usage of /home. The exec sudo -i kills the ec2-user process, which was using /home, and leaves me logged in as root. Now I can unmount and mount home without problems.

in flag
Why do you need to do this in the first place? Is the volume not configured to be mounted automatically?
wirelessben avatar
in flag
I need to move the data on the volume to a bigger volume. So I change the /etc/fstab and remount. And yes, it is configured to mount automatically in fstab.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.