google.cloud/molecule/gcloud/converge.yml
Yusuke Tsutsumi f692dd4c76 fix role tests
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).
2022-11-29 23:12:26 -08:00

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