diff --git a/builds/linux/almalinux-8/data/ks.pkrtpl.hcl b/builds/linux/almalinux-8/data/ks.pkrtpl.hcl index 8062fb064..965a64361 100644 --- a/builds/linux/almalinux-8/data/ks.pkrtpl.hcl +++ b/builds/linux/almalinux-8/data/ks.pkrtpl.hcl @@ -24,7 +24,10 @@ reboot %end %post -yum install -y sudo open-vm-tools perl +sudo dnf makecache +sudo dnf install epel-release -y +sudo dnf makecache +sudo dnf install -y sudo open-vm-tools perl ansible echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username} sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers %end \ No newline at end of file diff --git a/builds/linux/centos-linux-8/data/ks.pkrtpl.hcl b/builds/linux/centos-linux-8/data/ks.pkrtpl.hcl index 4775a1a3d..f47e3f7db 100644 --- a/builds/linux/centos-linux-8/data/ks.pkrtpl.hcl +++ b/builds/linux/centos-linux-8/data/ks.pkrtpl.hcl @@ -24,7 +24,10 @@ reboot %end %post -yum install -y sudo open-vm-tools perl +sudo dnf makecache +sudo dnf install epel-release -y +sudo dnf makecache +sudo dnf install -y sudo open-vm-tools perl ansible echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username} sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers %end \ No newline at end of file diff --git a/builds/linux/centos-stream-8/data/ks.pkrtpl.hcl b/builds/linux/centos-stream-8/data/ks.pkrtpl.hcl index 4aa34712e..46df3f3a5 100644 --- a/builds/linux/centos-stream-8/data/ks.pkrtpl.hcl +++ b/builds/linux/centos-stream-8/data/ks.pkrtpl.hcl @@ -24,7 +24,10 @@ reboot %end %post -yum install -y sudo open-vm-tools perl +sudo dnf makecache +sudo dnf install epel-release -y +sudo dnf makecache +sudo dnf install -y sudo open-vm-tools perl ansible echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username} sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers %end \ No newline at end of file diff --git a/builds/linux/photon-4/data/ks.pkrtpl.hcl b/builds/linux/photon-4/data/ks.pkrtpl.hcl index bf32ec5a6..4ef1723a8 100644 --- a/builds/linux/photon-4/data/ks.pkrtpl.hcl +++ b/builds/linux/photon-4/data/ks.pkrtpl.hcl @@ -11,7 +11,8 @@ "additional_packages": [ "sudo", "vim", - "cloud-utils" + "cloud-utils", + "ansible" ], "postinstall": [ "#!/bin/sh", diff --git a/builds/linux/rocky-linux-8/data/ks.pkrtpl.hcl b/builds/linux/rocky-linux-8/data/ks.pkrtpl.hcl index 8636d2e40..e5ac5eb1e 100644 --- a/builds/linux/rocky-linux-8/data/ks.pkrtpl.hcl +++ b/builds/linux/rocky-linux-8/data/ks.pkrtpl.hcl @@ -24,7 +24,10 @@ reboot %end %post -yum install -y sudo open-vm-tools perl +sudo dnf makecache +sudo dnf install epel-release -y +sudo dnf makecache +sudo dnf install -y sudo open-vm-tools perl ansible echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username} sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers %end \ No newline at end of file