From f7b2c6bad1a804a280fcedacce69d6c5c52bdf1f Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 18 Jul 2022 10:57:33 +0900 Subject: [PATCH] Add `-y` option flag to `add-apt-repository` Due to the behaviour change, need to add `-y` option for `add-apt-repository` command to operate without human interactions. --- cookbooks/docker/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/docker/install.rb b/cookbooks/docker/install.rb index 050e460..5839d2e 100644 --- a/cookbooks/docker/install.rb +++ b/cookbooks/docker/install.rb @@ -11,7 +11,7 @@ end execute 'add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ - stable"' do + stable" -y' do not_if 'which docker' end