From c59790a5b6a8250b3aa6ad582bf2f8b949df9bcc Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 30 Sep 2021 15:28:58 -0400 Subject: [PATCH 1/2] Add ansible to rhel-variants Adds the ansible package and dependencies to rhel-variants. --- builds/linux/almalinux-8/data/ks.pkrtpl.hcl | 5 ++++- builds/linux/centos-linux-8/data/ks.pkrtpl.hcl | 5 ++++- builds/linux/centos-stream-8/data/ks.pkrtpl.hcl | 5 ++++- builds/linux/rocky-linux-8/data/ks.pkrtpl.hcl | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) 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/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 From 1c3775363d853ca154944426da7d00eeacc25544 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 30 Sep 2021 15:31:08 -0400 Subject: [PATCH 2/2] Add ansible to PhotonOS Adds the ansible package and dependencies to PhotonOS. --- builds/linux/photon-4/data/ks.pkrtpl.hcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",