aboutsummaryrefslogtreecommitdiff
path: root/roles/configure-ephemeral/tasks/main.yml
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2024-12-12 12:47:55 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2025-02-20 10:59:30 +0000
commitaf632db5d138253c36a06a6bcd7d6c9b6fa85edc (patch)
tree05cb9f7708b40caeb51c1970ce7baf3bca7f5338 /roles/configure-ephemeral/tasks/main.yml
parent6d44736756e857e7893e572d5f62a5f7f91c4e86 (diff)
downloadkolla-af632db5d138253c36a06a6bcd7d6c9b6fa85edc.tar.gz
kolla-af632db5d138253c36a06a6bcd7d6c9b6fa85edc.zip
CI: Use ansible-lint for CI roles and playbooks
Removing dbus-python deps because now a-c-k handles that. Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/942179 Change-Id: I97a97da73a7ccb27789e979656867e4adfe8a633
Diffstat (limited to 'roles/configure-ephemeral/tasks/main.yml')
-rw-r--r--roles/configure-ephemeral/tasks/main.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/configure-ephemeral/tasks/main.yml b/roles/configure-ephemeral/tasks/main.yml
index 7d6402c30..d8733a8f9 100644
--- a/roles/configure-ephemeral/tasks/main.yml
+++ b/roles/configure-ephemeral/tasks/main.yml
@@ -3,7 +3,7 @@
# unallocated ephemeral device attached at /dev/xvde
- name: Set ephemeral device if /dev/xvde exists
when: ansible_devices["xvde"] is defined
- set_fact:
+ ansible.builtin.set_fact:
ephemeral_device: "/dev/xvde"
# On other providers, we have a device called "ephemeral0".
@@ -11,15 +11,15 @@
when: ephemeral_device is undefined
block:
- name: Get ephemeral0 device node
- command: /sbin/blkid -L ephemeral0
+ ansible.builtin.command: /sbin/blkid -L ephemeral0
register: ephemeral0
# rc !=0 is expected
- failed_when: False
- changed_when: False
+ failed_when: false
+ changed_when: false
- name: Set ephemeral device if LABEL exists
when: "ephemeral0.rc == 0"
- set_fact:
+ ansible.builtin.set_fact:
ephemeral_device: "{{ ephemeral0.stdout }}"
- name: Configure additional disk (if available)
@@ -53,13 +53,13 @@
fstype: ext4
dev: "{{ ephemeral_device }}"
- - name: "Ensure {{ configure_ephemeral_mountpoint }} mountpoint is created"
+ - name: "Ensure mountpoint {{ configure_ephemeral_mountpoint }}"
ansible.builtin.file:
path: "{{ configure_ephemeral_mountpoint }}"
owner: root
group: root
state: directory
- mode: 0755
+ mode: "0755"
- name: Mount additional filesystem
ansible.posix.mount: