add repo and install google-cloud-sdk

main
Andrew Coleman 2021-06-04 13:00:22 -04:00
parent b871f696f4
commit d798f8c635
2 changed files with 23 additions and 6 deletions

View File

@ -108,9 +108,3 @@
url: https://raw.githubusercontent.com/ahmetb/kubectx/master/completion/kubens.bash
dest: "{{ ansible_env.HOME }}/.bashrc.d/"
mode: "0640"
- name: install google-cloud-sdk fedora
when: ansible_facts['system']|lower == 'fedora'
dnf:
name: google-cloud-sdk
state: present

23
dnf.yml
View File

@ -6,3 +6,26 @@
dnf:
name: ShellCheck,alien,automake,awscli,bison,clang,cmake,curl,direnv,elfutils-libelf-devel,emacs,fakeroot,flex,fzf,gcc,gcc-c++,git,htop,httpie,jq,kernel-devel,libaio-devel,libblkid-devel,libffi-devel,libtirpc-devel,libtool,libudev-devel,libuuid-devel,libvirt-daemon-kvm,llvm,llvm-devel,llvm10,lsd,make,man-pages,most,nodejs,npm,openssh,openssh-clients,openssl-devel,openssl-perl,perl-FindBin,podman,qemu-kvm,skopeo,sqlite,sqlite-devel,tmux,uuid-devel,vim,which,zlib-devel
state: present
- name: add google-cloud-sdk repository
become: yes
become_user: root
become_method: sudo
ansible.builtin.yum_repository:
name: google-cloud-sdk.repo
description: Google Cloud SDK
baseurl: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
enabled: true
gpgcheck: yes
repo_gpgcheck: no
gpgkey:
- https://packages.cloud.google.com/yum/doc/yum-key.gpg
- https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
- name: install google-cloud-sdk
become: yes
become_user: root
become_method: sudo
dnf:
name: google-cloud-sdk
state: present