-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d12d88
commit 9cd8435
Showing
15 changed files
with
93 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
--- | ||
- include: get_key.yml | ||
- include_tasks: get_key.yml | ||
|
||
- name: add google cloud key to apt-key | ||
apt_key: file=/root/A7317B0F.gpg | ||
become: yes | ||
|
||
- name: sources.list | ||
template: > | ||
src=google-cloud-sdk.list.j2 | ||
dest=/etc/apt/sources.list.d/google-cloud-sdk.list | ||
force=no | ||
register: sources_list_result | ||
become: yes | ||
|
||
# Install apt-transport-https | ||
- name: install apt-transport-https | ||
action: "{{backcompat_pkg_mgr}} name=apt-transport-https" | ||
register: result_install_transport_https | ||
until: result_install_transport_https|success | ||
until: result_install_transport_https is success | ||
# Workaround https://github.com/ansible/ansible/issues/16868 and | ||
# increase default retry count | ||
retries: 20 | ||
delay: 10 | ||
become: yes | ||
|
||
- name: apt-get update | ||
apt: update_cache=true cache_valid_time=0 | ||
when: sources_list_result.changed | ||
register: result_apt_update | ||
until: result_apt_update|success | ||
until: result_apt_update is success | ||
# Workaround https://github.com/ansible/ansible/issues/16868 and | ||
# increase default retry count | ||
retries: 20 | ||
delay: 10 | ||
become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
- name: repo | ||
template: > | ||
src=google-cloud-sdk.repo.j2 | ||
dest=/etc/yum.repos.d/google-cloud-sdk.repo | ||
force=no | ||
template: | ||
src: google-cloud-sdk.repo.j2 | ||
dest: /etc/yum.repos.d/google-cloud-sdk.repo | ||
force: no | ||
become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
- { become: yes, include: compat.yml } | ||
- { become: yes, include: Debian.yml, when: ansible_os_family == 'Debian' } | ||
- { become: yes, include: RedHat.yml, when: ansible_os_family == 'RedHat' } | ||
- { become: yes, include: install_package_names.yml } | ||
- { become: yes, include: install_additional_packages.yml } | ||
- include_tasks: compat.yml | ||
- include_tasks: Debian.yml | ||
when: ansible_os_family == 'Debian' | ||
- include_tasks: RedHat.yml | ||
when: ansible_os_family == 'RedHat' | ||
- include_tasks: install_package_names.yml | ||
- include_tasks: install_additional_packages.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.