Skip to content

Commit

Permalink
Removing tty from gpg dearmor to prevent error in ansible build
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunbar13 committed Oct 15, 2024
1 parent 18b4e85 commit 50bd65a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/nvidia_container/tasks/os/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
force: true

- name: De-Armor Nvidia GPG key
command: "gpg --dearmor -o {{ nvidia_deb_gpg_key }} /tmp/gpgkey"
command: "gpg --dearmor --no-tty -o {{ nvidia_deb_gpg_key }} /tmp/gpgkey"
changed_when: false

- name: Add Nvidia Container Repo
Expand Down
4 changes: 0 additions & 4 deletions ansible/roles/nvidia_container/tasks/os/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

- name: De-Armor Nvidia GPG key
command: "gpg --dearmor -o {{ nvidia_gpg_key }} /tmp/gpgkey"
changed_when: false

- name: Add Nvidia Container Repo
ansible.builtin.yum_repository:
name: nvidia
Expand Down

0 comments on commit 50bd65a

Please sign in to comment.