Auto-fix yaml rules
In order to reduce divergance with ansible-lint rules, we apply auto-fixing of violations. In current patch we replace all kind of truthy variables with `true` or `false` values to align with recommendations along with alignment of used quotes. Change-Id: Ia76cbf1f2913dc4e03e19200f53d51f027769306
This commit is contained in:
parent
ebfe801b9c
commit
be093f9f58
1
.gitignore
vendored
1
.gitignore
vendored
@ -45,6 +45,7 @@ logs/*
|
|||||||
# OS generated files #
|
# OS generated files #
|
||||||
######################
|
######################
|
||||||
._*
|
._*
|
||||||
|
.ansible
|
||||||
.tox
|
.tox
|
||||||
*.egg-info
|
*.egg-info
|
||||||
.eggs
|
.eggs
|
||||||
|
@ -21,7 +21,7 @@ systemd_centos_epel_key: >-
|
|||||||
# Any optioned required to make the mount point work. If no options are
|
# Any optioned required to make the mount point work. If no options are
|
||||||
# provided the default will be used. This list is comma separted.
|
# provided the default will be used. This list is comma separted.
|
||||||
# https://www.freedesktop.org/software/systemd/man/systemd.mount.html#Options=
|
# https://www.freedesktop.org/software/systemd/man/systemd.mount.html#Options=
|
||||||
systemd_default_mount_options: 'defaults'
|
systemd_default_mount_options: "defaults"
|
||||||
|
|
||||||
# The systemd mounts dictionary is a set of mounts that will be created. The
|
# The systemd mounts dictionary is a set of mounts that will be created. The
|
||||||
# dictionary can contain the following options:
|
# dictionary can contain the following options:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Create a systemd mount file for Mount1 and 2
|
- name: Create a systemd mount file for Mount1 and 2
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
become: true
|
become: true
|
||||||
@ -6,14 +7,14 @@
|
|||||||
vars:
|
vars:
|
||||||
systemd_mounts:
|
systemd_mounts:
|
||||||
machines:
|
machines:
|
||||||
what: '/var/lib/machines.raw'
|
what: "/var/lib/machines.raw"
|
||||||
where: '/var/lib/machines'
|
where: "/var/lib/machines"
|
||||||
type: 'btrfs'
|
type: "btrfs"
|
||||||
options: 'loop'
|
options: "loop"
|
||||||
unit:
|
unit:
|
||||||
ConditionPathExists:
|
ConditionPathExists:
|
||||||
- '/var/lib/machines.raw'
|
- "/var/lib/machines.raw"
|
||||||
state: 'started'
|
state: "started"
|
||||||
enabled: true
|
enabled: true
|
||||||
glance_images:
|
glance_images:
|
||||||
config_overrides: {}
|
config_overrides: {}
|
||||||
|
@ -33,6 +33,6 @@
|
|||||||
|
|
||||||
- name: Reload systemd daemon
|
- name: Reload systemd daemon
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: true
|
||||||
no_block: yes
|
no_block: true
|
||||||
listen: Remove mount
|
listen: Remove mount
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
name: epel-systemd_mounts
|
name: epel-systemd_mounts
|
||||||
baseurl: "{{ systemd_centos_epel_mirror ~ '/' ~ ansible_facts['distribution_major_version'] ~ '/Everything/' ~ ansible_facts['architecture'] }}"
|
baseurl: "{{ systemd_centos_epel_mirror ~ '/' ~ ansible_facts['distribution_major_version'] ~ '/Everything/' ~ ansible_facts['architecture'] }}"
|
||||||
description: "Extra Packages for Enterprise Linux {{ ansible_facts['distribution_major_version'] }} - $basearch"
|
description: "Extra Packages for Enterprise Linux {{ ansible_facts['distribution_major_version'] }} - $basearch"
|
||||||
gpgcheck: yes
|
gpgcheck: true
|
||||||
enabled: yes
|
enabled: true
|
||||||
state: present
|
state: present
|
||||||
includepkgs: "s3fs-fuse"
|
includepkgs: "s3fs-fuse"
|
||||||
register: install_epel_repo
|
register: install_epel_repo
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
- name: Load or Unload mount(s)
|
- name: Load or Unload mount(s)
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: true
|
||||||
name: "{{ mount_service_name.stdout }}"
|
name: "{{ mount_service_name.stdout }}"
|
||||||
enabled: "{{ item.enabled | default(true) }}"
|
enabled: "{{ item.enabled | default(true) }}"
|
||||||
when:
|
when:
|
||||||
@ -103,10 +103,10 @@
|
|||||||
|
|
||||||
- name: Unload mount(s)
|
- name: Unload mount(s)
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: true
|
||||||
name: "{{ mount_service_name.stdout }}"
|
name: "{{ mount_service_name.stdout }}"
|
||||||
enabled: false
|
enabled: false
|
||||||
no_block: yes
|
no_block: true
|
||||||
when:
|
when:
|
||||||
- item.state | default('unknown') == 'absent'
|
- item.state | default('unknown') == 'absent'
|
||||||
notify: Remove mount
|
notify: Remove mount
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
systemd_nfs_packages:
|
systemd_nfs_packages:
|
||||||
- nfs-common
|
- nfs-common
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
systemd_nfs_packages:
|
systemd_nfs_packages:
|
||||||
- nfs-utils
|
- nfs-utils
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user