fixing ansible-lint errors, fix gcsfuse

Ansible-lint is required for Ansible collection
certification for Automation Hub.

gcsfuse had no metadata associated with it, failing
the Ansible Hub upload.
This commit is contained in:
Yusuke Tsutsumi 2022-12-10 09:54:28 -08:00 committed by Yusuke Tsutsumi
commit 4907356bba
16 changed files with 71 additions and 33 deletions

View file

@ -6,7 +6,7 @@
ansible.builtin.apt:
name: gnupg
update_cache: true
when: ansible_os_family|lower == "debian"
when: ansible_os_family | lower == "debian"
roles:
- role: google.cloud.gcloud
gcloud_install_type: archive

View file

@ -3,19 +3,20 @@
hosts: all
pre_tasks:
- name: Update package cache
ansible.builtin.package: update_cache=yes
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
- 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
- name: Override file for containerd
ansible.builtin.copy:
src: files/override.conf
dest: /etc/systemd/system/containerd.service.d/override.conf

View file

@ -6,7 +6,7 @@
ansible.builtin.apt:
name: gnupg
update_cache: true
when: ansible_os_family|lower == "debian"
when: ansible_os_family | lower == "debian"
roles:
- role: google.cloud.gcloud
gcloud_additional_components:

View file

@ -3,7 +3,8 @@
hosts: all
pre_tasks:
- name: Update package cache
ansible.builtin.package: update_cache=yes
ansible.builtin.package:
update_cache: "yes"
changed_when: false
register: task_result
until: task_result is success