mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-01 11:44:32 -07:00
Initial commit of gcsfuse role
This commit is contained in:
parent
282f8e3b82
commit
b8b07c188d
6 changed files with 66 additions and 0 deletions
25
roles/gcsfuse/tasks/debian.yml
Normal file
25
roles/gcsfuse/tasks/debian.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- name: gcsfuse | Ensure gpg is installed
|
||||
apt: name=gnupg
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
delay: 2
|
||||
|
||||
- name: gcsfuse | Add an apt signing key
|
||||
apt_key:
|
||||
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
state: present
|
||||
|
||||
- name: gcsfuse | Add the apt repository
|
||||
apt_repository:
|
||||
repo: deb http://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
|
||||
state: present
|
||||
filename: gcsfuse
|
||||
|
||||
- name: gcsfuse | Install gcsfuse
|
||||
apt: name=gcsfuse update_cache=yes
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
delay: 2
|
4
roles/gcsfuse/tasks/main.yml
Normal file
4
roles/gcsfuse/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
# tasks file for google.cloud.gcsfuse
|
||||
|
||||
- include_tasks: "{{ ansible_os_family|lower }}.yml"
|
Loading…
Add table
Add a link
Reference in a new issue