From a9d8a71a92106a0b47ed0fea337d09e5c4d98c37 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 23 Jun 2022 15:52:12 -0500 Subject: [PATCH] Add fake usermod command Ansible's `user` module *requires* that the `usermod` command be present, even if it would not actually create or modify the specified user. It does not actually execute it unless it needs to, so we can stub it out. Making it a symlink to `false` ensures that it will never do anything, and will fail if its actually run. --- rootfs/overlay/usr/bin/usermod | 1 + 1 file changed, 1 insertion(+) create mode 120000 rootfs/overlay/usr/bin/usermod diff --git a/rootfs/overlay/usr/bin/usermod b/rootfs/overlay/usr/bin/usermod new file mode 120000 index 0000000..02e4a84 --- /dev/null +++ b/rootfs/overlay/usr/bin/usermod @@ -0,0 +1 @@ +false \ No newline at end of file