diff options
Diffstat (limited to 'roles/configure-ephemeral/tasks/main.yml')
| -rw-r--r-- | roles/configure-ephemeral/tasks/main.yml | 14 |
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: |
