mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-13 14:20:27 -07:00
Ansible role tests were failing due to ansible-lint reporting multiple errors. Fixing those errors resolves the failing tests. Switching gcsfuse to use gcloud's bootstrap to follow the current docker install instructions. Removing centos as it's a discontinued distribution. Adding a check to ensure integration tests are skipped unless they are run by a branch (a public fork does not pass required integration test credentials).
25 lines
736 B
YAML
25 lines
736 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
pre_tasks:
|
|
- name: Update package cache
|
|
ansible.builtin.package: update_cache=yes
|
|
changed_when: false
|
|
register: task_result
|
|
until: task_result is success
|
|
retries: 10
|
|
delay: 2
|
|
- name: create containerd folder
|
|
ansible.builtin.file:
|
|
path: /etc/systemd/system/containerd.service.d
|
|
state: directory
|
|
mode: 0755
|
|
when: ansible_service_mgr == "systemd"
|
|
- name: override file for containerd
|
|
ansible.builtin.copy:
|
|
src: files/override.conf
|
|
dest: /etc/systemd/system/containerd.service.d/override.conf
|
|
mode: 0644
|
|
when: ansible_service_mgr == "systemd"
|
|
roles:
|
|
- role: google.cloud.gcloud
|