Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5cc7250

Browse files
committed
Update scripts that install Ansible
1 parent 0ec1154 commit 5cc7250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ansible/installer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ func (i *Installer) Install(playbookName, sudoPassword string, conf *configurati
3434
"apt update",
3535
"apt install software-properties-common -y",
3636
"add-apt-repository --yes --update ppa:ansible/ansible",
37-
"apt install ansible -y",
37+
"DEBIAN_FRONTEND=noninteractive apt install ansible -y",
38+
"apt upgrade -y",
3839
}
3940
for _, script := range scripts {
4041
if err = i.runSudoBashCommand(sudoPassword, script); nil != err {

0 commit comments

Comments
 (0)