Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ansible to rhel-variants and photonos #76

Merged
merged 2 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion builds/linux/almalinux-8/data/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion builds/linux/centos-linux-8/data/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion builds/linux/centos-stream-8/data/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion builds/linux/photon-4/data/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"additional_packages": [
"sudo",
"vim",
"cloud-utils"
"cloud-utils",
"ansible"
],
"postinstall": [
"#!/bin/sh",
Expand Down
5 changes: 4 additions & 1 deletion builds/linux/rocky-linux-8/data/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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